three_d::renderer

Function render_with_effect

Source
pub fn render_with_effect(
    context: &Context,
    camera: &Camera,
    geometry: impl Geometry,
    effect: impl Effect,
    lights: &[&dyn Light],
    color_texture: Option<ColorTexture<'_>>,
    depth_texture: Option<DepthTexture<'_>>,
)
Expand description

Render the given Geometry with the given Effect. 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 effect does not require lights to be rendered.