pub fn render_with_material(
context: &Context,
viewer: impl Viewer,
geometry: impl Geometry,
material: impl Material,
lights: &[&dyn Light],
)Expand description
Render the given Geometry with the given Material.
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.