media_shadow_apply.computeShader
- README.md738 B
- bindings.yaml526 B
- shader.wgsl1.3 KB
This package holds more than this page lists. See all of its files in its world.
README.md
media_shadow_apply
Writes the share of the scene's sun the participating media take on the way to
each surface into the sun occlusion channel (@scene.sunOcclusion), which the
sun's term reads at that pixel. The sun is the one the scene is lit by
(@frame.light), and the optical depth is each medium's density times the
length of the ray toward it inside the medium (media_optical_depth), one
intersection per medium.
Includes
media_common@builtin::shaderModules.frame_light
Bindings
| name | kind |
|---|---|
scene_depth | texture_depth |
frame_cam | buffer |
scene_light | buffer |
media_params | buffer |
media_volumes | buffer |
sun_occlusion | storage2d (rgba8) |