Builtin Library
- ..
- README.md755 B
- bindings.yaml506 B
- shader.wgsl12.2 KB
README.md
cloud_raymarch_v3
Volumetric-sky cloud raymarcher (Frostbite-style lighting), v3 variant: Wrenninge/Hillaire multi-scatter (3 octaves), 5-sample cone-traced soft shadow, and combined Beer-Lambert + Powder edge glow. Reads the cloud volume + occupancy textures and writes the lit raymarch result.
Bindings (see bindings.yaml): clouds (texture3d), occupancy (texture3d),
cloud_smp (sampler), out_tex (storage2d rgba16f), U (read array<f32>
uniforms).
Usage: dispatch by identity with compute.dispatchEx("@builtin::systems.volumetrics.shaders.cloud_raymarch_v3", ...) (textures/sampler/storage texture require resource binding, not positional buffers) —
it resolves to the shader's stable guid and auto-compiles on first use (no setup).