mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 21:03:47 -10:00
A measuring step, as LT2's irradiance volume was meant to be. raea-sys-gi's screen pass, between the prepass and the main pass, reads the world cache at each pixel's own surface (from the depth and normal prepasses), takes out the sun's share (each cell now keeps a mean of how often it sees the sun: cache.wesl sunlit, 4 MiB), and writes it a texel a pixel. The main pass draws it in place of the irradiance volume, the environment map's diffuse and the ambient light (vendored bevy_pbr: RaeaGiScreen, mesh view binding 41, read by textureLoad, so a hooked material at Metal's 16 samplers still builds; zeros where a view has none). The cache's lookup loads before it writes, as a cell is read by hundreds of pixels. GI cameras get their depth and normal prepasses with MSAA off. LT14, LT1 raster before against after (binding 41 bound to zeros): FLOOR3 mean 1.379/1.379, bias -0.801/-0.801, worst 3.370/3.371, flicker 0.101/0.101; glade 1.758/1.758, 1.542/1.542, 3.000/3.000, 0.817/0.817. Live: FLOOR3 12.6/13.7 ms, gambit-walk 49.0/42.6, kitchen 54.9/56.5 timed back to back (61.7 beside another build). With the temporal filter, raster against gi: glade mean 1.750/1.474, bias 1.532/1.241, worst 2.953/2.948, flicker 0.788/0.780, against a reference that is near black and has no fog (LT5). FLOOR3 goes 4.8 stops dark: it is lit only by its panels' emission, which no cell knows yet (LT4's first tier); live 14.5/16.3 ms, the cache 0.92 ms of GPU.
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.