Log inGet started
Package

atmo_sky.computeShader

Newest version

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

README.md

atmo_sky

Draws the physical sky into the scene right after the sky pass, where the depth pre-pass left sky: the sky-view LUT's radiance for each view direction, and the solar disc attenuated by the air between it and the camera. Everything the frame draws later (a cloud layer, the opaque scene, transparents, particles) lands in front of it.

The disc keeps the colour its air path gives it: a low sun crosses more air and comes out warmer. Its brightest channel is held to a fixed ceiling above the sky's, so it stays the brightest thing in the frame at every exposure and the display curve keeps its hue.

Includes

  • atmo_common
  • atmo_transmittance_lookup
  • atmo_skyview_lookup

Bindings

namekind
scene_colortexture2d
scene_depthtexture_depth
frame_cambuffer
atmo_paramsbuffer
transmittance_luttexture2d
skyview_luttexture2d
sky_outstorage2d (rgba16f)

sky_out holds linear light; the disc carries it past 1.0, which an 8-bit target would clamp.