scattering_common.shaderModule
- README.md530 B
- module.wgsl2.8 KB
This package holds more than this page lists. See all of its files in its world.
README.md
scattering_common
The light-scattering passes' shared ground: the phase function, the shadow lookup along a ray, the froxel-to-world mapping, and the distance term of each light standing in the medium: a point or spot light's windowed inverse-square law (zero_punctual_falloff, from light_falloff), and a rect light's window (zero_area_falloff), which vol_lights takes with the solid angle the rect's face fills seen from a point of the air.
Included with #include "@builtin::systems.volumetrics.scattering_common".