solid.shader
- .metadata17 B
- README.md993 B
- preview.png51.9 KB
- properties.yaml685 B
- shader.wgsl9.0 KB
README.md
solid
Abyssal Garden, engine-drawn: the surface shader for the seabed, the stone fluke and every procedural solid (boulders, rock chunks, pebbles, sponges, corals, tube sponges, the ship). Its fragment is the original solid fragment (abyssal/draw/solid.rasterShader) ported line for line — triplanar rock detail at four scales from the generator's detail atlas, strata, encrusting growth, algae, deep-floor growth, grotto tint, the sponge / wood / coral palettes, the bump normal and the occlusion from the skylight volume — handed to the engine as a PBR surface, so the engine's sun, shadows and global illumination light it instead of the original's hand-written light. The vertex hook keeps the original's distance shrink for small rocks and the bob of floating set pieces. Textures tD, tM, tV are bound at runtime by abyssal_engine.world (2D copies of the generator's 3D textures, abyssal_engine.copy3d); lanes per instance: position + scale, rotation, material record.