mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
MeshStandardMaterial's wear and raea/pbr's <WearExtension> drew with the engine's own MaterialExtension (systems/wear). They now write the same shader on the public surface hook (sdk/render/src/worn.ts, WORN_WESL: the same noise, curvature edges, grime, rust and chips, in the mesh's own space), so wear is an author's shader like any other and raea/wear's weather and the paint wear share one path. A parity scene (sharp, turned and round parts, every setting) renders the same as before, RMSE 3.8e-5 of full scale. One change: clay draws custom surface shaders as they are, so worn paint now shows in a clay render, as a ShaderExtension's does. Deleted: systems/wear, its WearPlugin, its spawn branch, its mesh-row columns, its layer entries, and its type in the registry snapshot, bevy.gen.tsx and sdk-coverage (reached 1557 -> 1556: the type is gone; wear is still authored). wear with shader or grid on one material is refused (it was silently dropped). WearExtension keeps its props, so the guides are unchanged; it carries no @bevy tag of its own now, since its Bevy type is ShaderExtension's.
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.