Trait rustracer::render::Solve

source ·
pub trait Solve {
    // Required method
    fn solve(&self, ray: Ray, pcg: &mut Pcg) -> Color;
}
Expand description

A trait for solving rendering equation.

Must accept a Ray and a Pcg, and must return a Color instance telling the color to assign to a pixel in the image.

Note: Pcg parameter will be used only with Renderer::PathTracer.

Required Methods§

source

fn solve(&self, ray: Ray, pcg: &mut Pcg) -> Color

Implementors§

source§

impl Solve for DummyRenderer

source§

impl<'a> Solve for Renderer<'a>

source§

impl<'a> Solve for FlatRenderer<'a>

source§

impl<'a> Solve for OnOffRenderer<'a>

source§

impl<'a> Solve for PathTracer<'a>