Function three_d::renderer::apply_screen_material
source · pub fn apply_screen_material(
context: &Context,
material: impl Material,
camera: &Camera,
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.