[][src]Trait lyon_extra::triangle_rasterizer::PixelShader

pub trait PixelShader<Pixel, Vertex, Constants> {
    fn shade(
        pixel: Pixel,
        vertex_pixels: &Vertex,
        constants: &Constants
    ) -> Pixel; }

An operation that is applied to each rasterized pixel

Required methods

fn shade(pixel: Pixel, vertex_pixels: &Vertex, constants: &Constants) -> Pixel

Loading content...

Implementors

Loading content...