Abyssal Garden
- ..
- .metadata17 B
- README.md773 B
- properties.yaml673 B
- shader.wgsl6.7 KB
README.md
leaf
Abyssal Garden, engine-instancing scene: the surface shader for kelp fronds, plant leaves and ground-cover tufts drawn as engine instanced populations. Its vertex hook is a port of the original's leaf vertex stage: from the instance's four data lanes (written by abyssal/engine/leaf_instances.computeShader) and the vertex's index on a rows * 2 strip mesh it builds the curled, twisted, ruffled blade, swaying in the current with v.time (so the engine's previous-frame evaluation gives correct motion vectors). The fragment colours the leaf by its type and seeds and hands the engine a PBR surface, with the original's emissive leaves and glinting specks as emission. Properties: rows, far (distance a leaf narrows away at), wmul (width), brightness.