Log inGet started
Package

atmo_aerial_volume.shaderModule

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

atmo_aerial_volume

The layout of the aerial perspective volume, shared by the pass that builds it (atmo_aerial) and the module that reads it (atmo_aerial_lookup): AP_COLS azimuths from the sun by AP_ROWS zenith angles, laid out as the sky-view table lays them out (skyview_uv), each direction cut at AP_SLICES depth boundaries over the air it crosses.

  • ap_depth(r, mu): the air a direction crosses, from where it begins (the camera, or for a camera above the air where the ray enters it) to where the ray leaves the air or meets the ground, and whether it ends on the ground. It spans the whole path whatever aerialMaxKm is set to.
  • ap_boundary_km / ap_boundary_of: the distance of a boundary and its inverse. The spacing widens geometrically from where the air begins; a ray that ends on the ground takes that spacing from both ends toward its middle, so the dense air next to the ground is cut finely.
  • ap_cell: a view direction's place on the grid, held to the rows on its own side of the horizon.
  • AerialAir: the light the air scatters toward the camera and the share of a surface's light it lets through.

Included with #include "@builtin::systems.atmosphere.atmo_aerial_volume", after atmo_common.