Skip to main content

extract_bloom_pixel

Function extract_bloom_pixel 

Source
pub fn extract_bloom_pixel(
    r: f32,
    g: f32,
    b: f32,
    threshold: f32,
    knee: f32,
) -> (f32, f32, f32)
Expand description

Extract the bloom contribution from a pixel with a soft threshold. Returns (r, g, b) with the threshold applied.