[][src]Trait pbrt::core::integrator::SamplerIntegrator

pub trait SamplerIntegrator {
    fn preprocess(
        &mut self,
        scene: &Scene,
        sampler: &mut Box<dyn Sampler + Send + Sync>
    );
fn li(
        &self,
        ray: &mut Ray,
        scene: &Scene,
        sampler: &mut Box<dyn Sampler + Send + Sync>,
        depth: i32
    ) -> Spectrum;
fn get_pixel_bounds(&self) -> Bounds2i; }

Required methods

fn preprocess(
    &mut self,
    scene: &Scene,
    sampler: &mut Box<dyn Sampler + Send + Sync>
)

fn li(
    &self,
    ray: &mut Ray,
    scene: &Scene,
    sampler: &mut Box<dyn Sampler + Send + Sync>,
    depth: i32
) -> Spectrum

Returns the incident radiance at the origin of a given ray. Uses the scene's intersect routine to calculate a SurfaceInteraction and spawns rays if necessary.

fn get_pixel_bounds(&self) -> Bounds2i

Loading content...

Implementors

impl SamplerIntegrator for AOIntegrator[src]

impl SamplerIntegrator for DirectLightingIntegrator[src]

impl SamplerIntegrator for PathIntegrator[src]

impl SamplerIntegrator for VolPathIntegrator[src]

Loading content...