pub trait FragmentShader<Var> {
// Required method
fn shade_fragment(&self, frag: Frag<Var>) -> Option<Color4>;
}Expand description
Trait for fragment shaders, used to compute the color of each individual pixel, or fragment, rendered.
§Type parameters
Var: The varying of the input fragment.