bevy/crates/bevy_pbr/src/atmosphere
Emerson Coskey 83370e0a25
Use dual-source blending for rendering the sky (#17672)
# Objective

Since previously we only had the alpha channel available, we stored the
mean of the transmittance in the aerial view lut, resulting in a grayer
fog than should be expected.

## Solution

- Calculate transmittance to scene in `render_sky` with two samples from
the transmittance lut
- use dual-source blending to effectively have per-component alpha
blending
2025-02-10 23:53:53 +00:00
..
aerial_view_lut.wgsl Use dual-source blending for rendering the sky (#17672) 2025-02-10 23:53:53 +00:00
bindings.wgsl
bruneton_functions.wgsl
functions.wgsl Use dual-source blending for rendering the sky (#17672) 2025-02-10 23:53:53 +00:00
mod.rs Use dual-source blending for rendering the sky (#17672) 2025-02-10 23:53:53 +00:00
multiscattering_lut.wgsl
node.rs
render_sky.wgsl Use dual-source blending for rendering the sky (#17672) 2025-02-10 23:53:53 +00:00
resources.rs Use dual-source blending for rendering the sky (#17672) 2025-02-10 23:53:53 +00:00
sky_view_lut.wgsl
transmittance_lut.wgsl
types.wgsl