pub fn apply_screen_material(
context: &Context,
material: impl Material,
viewer: impl Viewer,
lights: &[&dyn Light],
)Expand description
Apply the given Material to the entire sceen.
Must be called in the callback given as input to a RenderTarget, ColorTarget or DepthTarget write method.
Use an empty array for the lights argument, if the material does not require lights to be rendered.