Skip to main content

band_contour

Function band_contour 

Source
pub fn band_contour(contour: f32) -> f32
Expand description

The contour depth the fragment sites are handed: clamped to [0, 1], with a non-finite binding falling back to none.

The contour itself has no CPU definition to be canonical — it is drawn from fwidth, which exists only in a fragment shader — so the WGSL is the implementation and its two copies are what the drift test compares. This is the part of it that can live on the CPU.