Skip to main content

compositor_vertex

Function compositor_vertex 

Source
pub fn compositor_vertex(vertex_id: u32, out_uv: &mut Vec2, out_pos: &mut Vec4)
Expand description

Fullscreen quad vertex shader for compositing.

Generates 6 vertices (two triangles) covering the full clip-space quad and passes through UV coordinates for texture sampling.