nebula_fill.computeShader
- README.md701 B
- bindings.yaml131 B
- shader.wgsl3.8 KB
This package holds more than this page lists. See all of its files in its world.
README.md
nebula_fill
Fills a volume with a spiral nebula: RGB carries emission, A carries density. One invocation per voxel at workgroup size 4x4x4.
The fill shader of the nebula demo scene. A volume like it in a world is a
Volume component on an entity, its texture built by the volume module or a
fill of your own.
Bindings
| name | kind | what it is |
|---|---|---|
vol | storage3d (rgba16f) | the volume written, read-write so a pass can accumulate |
U | buffer (read, f32) | the demo's fill parameters, in the order the shader reads them |
U holds: elapsed time, spiral frequency, arm thickness, core brightness, edge
brightness, dust density, noise strength.