Skip to main content

DEPTH_CLEAR

Constant DEPTH_CLEAR 

Source
pub const DEPTH_CLEAR: f32 = 1.0;
Expand description

The depth value a frame clears its attachment to.

strip.wgsl maps the backmost draw to z = 1.0 and every draw in front of it to a smaller z, so the far plane is the only clear value under which the backmost draw still passes a DEPTH_COMPARE test.