Skip to main content

ALPHA_FLOOR

Constant ALPHA_FLOOR 

Source
pub const ALPHA_FLOOR: f32 = 1e-4;
Expand description

The floor the shader divides by, mirroring its own ALPHA_FLOOR constant.

Stated here so a host can document the guard it is buying without reading WGSL. A test below pins the two against each other, since a divisor guard that drifted would only show up as NaN pixels on a device.