sky.package
- ..
- README.md784 B
- module.wgsl2.2 KB
This package holds more than this page lists. See all of its files in its world.
README.md
skyLight_read
Reads the irradiance map a sky light (@builtin::systems.sky.skyLight) gathers,
for a pass that is lit by the sky light outside its own G-buffer pass: a
participating medium, a height fog, the air the volumetric light marches.
zero_sky_light_irradiance(map, d): the light arriving at a surface turned towardd.zero_sky_light_in_scatter(map, strength, open): the light a point of the air takes and scatters evenly, the mean over the six axis directions, scaled by the sky light'sdiffusestrength and the share of the sky the point sees.
The pass binds the map; @builtin::systems.sky.skyLightSource resolves the map
and the strength of the sky light a setting names, and a strength of 0 where
none is named, which reads nothing from the map.