Skip to main content

compositor_fragment

Function compositor_fragment 

Source
pub fn compositor_fragment(
    texture: &Image2d,
    sampler: &Sampler,
    in_uv: Vec2,
    frag_color: &mut Vec4,
)
Expand description

Passthrough fragment shader for compositing.

Samples the source texture at the given UV and outputs the color. Alpha blending is handled by the pipeline’s blend state, not the shader.