Function bloom_downsample_fragment

Source
pub fn bloom_downsample_fragment(
    slab: &[u32],
    texture: &Image2d,
    sampler: &Sampler,
    in_uv: Vec2,
    in_pixel_size_id: Id<Vec2>,
    downsample: &mut Vec4,
)
Expand description

Bloom downsampling shader.

Performs successive downsampling from a source texture.

As taken from Call Of Duty method - presented at ACM Siggraph 2014.

This particular method was designed to eliminate “pulsating artifacts and temporal stability issues”.