Builtin Library
- ..
- README.md1.1 KB
- bindings.yaml405 B
- shader.wgsl6.9 KB
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_commonatmo_transmittance_lookupatmo_skyview_lookup
Bindings
| name | kind |
|---|---|
scene_color | texture2d |
scene_depth | texture_depth |
frame_cam | buffer |
atmo_params | buffer |
transmittance_lut | texture2d |
skyview_lut | texture2d |
sky_out | storage2d (rgba16f) |
sky_out holds linear light; the disc carries it past 1.0, which an 8-bit target would clamp.