Log inGet started
Package

media_shadow_apply.computeShader

Newest version

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

namekind
scene_depthtexture_depth
frame_cambuffer
scene_lightbuffer
media_paramsbuffer
media_volumesbuffer
sun_occlusionstorage2d (rgba8)