Skip to main content

soft_threshold

Function soft_threshold 

Source
pub fn soft_threshold(lum: f32, threshold: f32, knee: f32) -> f32
Expand description

Soft-threshold a luminance value with knee falloff. Pixels below threshold - knee contribute 0, above threshold + knee contribute fully.