Log inGet started
Package

height_fog_light.computeShader

Newest version

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

README.md

height_fog_light

The light the air around the camera takes from its surroundings, written to one texel for height_fog to read: the scene's ambient term, the sky and reflection probes the environment captured and the baked light-probe volumes (@scene.environment, @scene.reflectionProbes), averaged over every direction (zpbr_surroundings_in_scatter) at the position of the camera being drawn (@frame.camera). With the ambient and the environment dark it writes black.

Includes

  • @builtin::shaderModules.frame_light
  • @builtin::shaderModules.ambient_light

Bindings

namekind
frame_cambuffer, read vec4<f32>
scene_lightbuffer, read vec4<f32>
environment_maptextureCubeArray
environment_samplersampler
zero_environmentbuffer, read ZeroEnvironment
fog_lightstorage2d (rgba16f)