cloud_shadow_apply.computeShader
- README.md683 B
- bindings.yaml762 B
- shader.wgsl1.3 KB
This package holds more than this page lists. See all of its files in its world.
README.md
cloud_shadow_apply
For every pixel with a surface under it, the share of the scene's sun the
cloud layer takes on the way from the sun to that surface
(1 - cloud_shadow_transmittance), written for the composite that lays it
into the sun occlusion channel (@scene.sunOcclusion) with the union blend.
Sky pixels take none.
Includes
@builtin::shaderModules.frame_lightcloud_shadow
Bindings
| name | kind |
|---|---|
scene_depth | texture_depth |
frame_cam | buffer |
scene_light | buffer |
cloud_shadow_map | texture2d |
cloud_shadow_smp | sampler |
cloud_shadow | buffer |
occlusion_out | storage2d (rgba8) |