Log inGet started
Package

skyLight_read.shaderModule

Newest version

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 toward d.
  • 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's diffuse strength 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.