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.