cloud_shadow_map.computeShader
- README.md1.1 KB
- bindings.yaml1.6 KB
- shader.wgsl1.7 KB
This package holds more than this page lists. See all of its files in its world.
README.md
cloud_shadow_map
The share of the cloud layer's shadow map a render refreshes: one line of
every block of the map (cloud_shadow_slice at the step of the refresh
cloud_shadow_recall states, and cloud_shadow_block, in
cloud_shadow_space), marched across the layer toward the sun for the view
being drawn (cloud_shadow_march). It runs after cloud_shadow_carry has
carried the rest of the map over from the view's previous render and writes
over the lines it marches. One thread per block, so every thread of a
workgroup marches and the pass costs the share of the map it refreshes. It
counts the lines it marches in the map's counter.
Includes
@builtin::shaderModules.frame_lightcloud_shadow_march
Bindings
| name | kind |
|---|---|
shape | texture3d |
detail | texture3d |
weather | texture3d |
noise_smp | sampler |
U | buffer |
frame_cam | buffer |
scene_light | buffer |
cloud_shadow | buffer |
recalled | buffer |
cloud_shadow_count | buffer (atomic<u32>) |
shadow_out | storage2d (rgba16f) |