mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 21:03:47 -10:00
wearBake bakes a model's causes once (the native call, now typed), and wearShader draws them as wear by material class: one WESL function per class (plaster, brick, sandstone, granite, wood, iron, zinc, copper, slate, felt, glass, enamel, brass, ground), the stains, rising damp and splash they share, and WR9's season and weather over them, from uniforms (age: years, soot, upkeep; weather: day, wet, snow, storm, ice). A debug mode draws any of 14 causes in false colour from a lit hook. A mesh without the bake's second UV set is left as it was. The bake (raea-sys-weathering 6) writes each texel's class into causes2's spare alpha, read by textureLoad, so one shader serves every material; dilation copies class and element into the gutters instead of averaging two into a third; a primitive with no UV set gets the atlas's as TEXCOORD_0 too, since Bevy's standard surface reads the first wherever there's a second. Proof: bun test in sdk/wear (12), cargo test -p raea-sys-weathering (11), and a street front of all 14 classes baked and rendered by day, in rain, snow and autumn, and cause by cause.
docs
Documentation that spans more than one folder.
- settings.md: every setting raea reads (the agent's model provider, the optional API for generated music and speech, checks), and where they go.
Each folder's own README describes that part of the code. Behaviour specs written in Gherkin sit beside the code they
specify, for example sdk/shell/shell.feature and
sdk/raea/spec/motion.feature.