height_fog_light.computeShader
- README.md888 B
- bindings.yaml668 B
- shader.wgsl1.0 KB
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
| name | kind |
|---|---|
frame_cam | buffer, read vec4<f32> |
scene_light | buffer, read vec4<f32> |
environment_map | textureCubeArray |
environment_sampler | sampler |
zero_environment | buffer, read ZeroEnvironment |
fog_light | storage2d (rgba16f) |