mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 21:03:47 -10:00
Bevy's custom_vertex_attribute gives a cube a BlendColor attribute and lays out the material's vertex buffer as [POSITION at 0, BLEND_COLOR at 1] in its specialize. raea now does both: - sdk/render: MeshVertexAttribute.new(name, id, format) and Mesh's ATTRIBUTE_* constants; Mesh3d `attributes` ([[attribute, values]], a value a vertex); Material `vertex_attributes` ([[attribute, location]]). - runtime/scene: the mesh row carries `attributes` from the first frame. - raea-sys-mesh attribute.rs: with_attributes inserts them into the mesh (names interned once, as Bevy's are &'static str); engine/render's shared mesh keys on them, line-neutral. - raea-sys-shader own.rs: the layout is part of the pipeline key, and swap sets the vertex buffer to layout.0.get_layout of the named attributes, as Bevy's specialize does. Parity: frames 5 and 10 at ssim 1.000000, 0 pixels off. Mutants: a green BlendColor, BlendColor at location 0 and four blue vertices fail the bar. Moving the cube 0.1 up and halving the uniform's red pass the bar but the probe counts 6,067 and 36,685 pixels off (the known SSIM blind spot; the real port is 0). skills/ pins raea-skills 5218644 (#7), whose generated sdk.md lists the new names.
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.rsandsrc/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 throughruntime/js/.src/cli.rsandsrc/media_verbs.rs: native media verbs (raea media ..., plusraea ffmpegandraea 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.