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.
2 lines
5 B
Plaintext
2 lines
5 B
Plaintext
1556
|