Skip to main content

push_fullscreen_quad

Function push_fullscreen_quad 

Source
pub fn push_fullscreen_quad(out: &mut Vec<GradientVertex>, w: f32, h: f32)
Expand description

Push a fullscreen quad (covers [0,0] to [w, h]) as 6 GradientVertex vertices.

Used by the blur and composite passes which draw over the entire viewport. The local field carries pixel-space coordinates used as UV source in those shaders.