Files
raea/engine/render
shinyobjectz 2a71a69d95 FC0a: 3d/two_passes and 3d/split_screen, several cameras in one window
<Camera3d> takes Bevy's Camera order, clear_color (ClearColorConfig: Default, None, Custom) and viewport (physical px). Every camera in a scene gets a camera row: the first is "cam", and each one after it is cam1, cam2 and so on (runtime/look camera.rs). Renders and live play spawn them all, and raea-sys-frame's camera_pass puts each row's order, clear and viewport on its Camera. Per-camera UI goes in a <Viewport> inside <UiTargetCamera>.

two_passes: 0.999025, 0 px off in render and live. split_screen: 0.998973, 1142 px off in render, 673 in live play. Mutation tests: a missing viewport, a shifted viewport, a moved camera and a changed justify_content fail the bar. The pixel probe catches the light angle, button width, padding, margin and plane size. Reversing the camera order is equivalent because the viewports don't overlap. In live play, extra cameras keep the place they had on the first frame.
2026-11-08 01:01:17 -08:00
..
2026-10-31 13:15:29 -07:00
2026-10-31 13:15:29 -07:00

raea-render

raea-render: raea's render engine. raea compositions are lowered to its program (rows spawned once, keyed per frame) by sdk/react/ and drawn here, so a render and a live play draw from the same rows with the same code.

  • src/engine.rs and src/engine/: the Bevy renderer: 3D scenes (meshes, lights, cameras, glTF models, post effects), video frames, the painted pages as image rows (src/rows2d.rs, drawn by bevy_ui) and sound.
  • src/gpuview.rs: the direct GPU path a render encodes from.
  • src/html.rs: HTML compositions, drawn by bevy_ui through runtime/js/.
  • src/cli.rs and src/media_verbs.rs: native media verbs (raea media ..., plus raea ffmpeg and raea ffprobe, which read ffmpeg-style command lines without running ffmpeg). raea and the shell run them in process.

Depends on runtime/js/, systems/k/, io/media/ and gpu/device/.

Status: in use as the renderer behind raea.