Struct rs_pbrt::integrators::whitted::WhittedIntegrator   
source · [−]pub struct WhittedIntegrator {
    pub camera: Arc<Camera>,
    pub sampler: Box<Sampler>,
    /* private fields */
}Expand description
Whitted’s ray-tracing algorithm - uses the render loop of a SamplerIntegrator
Fields
camera: Arc<Camera>sampler: Box<Sampler>Implementations
sourceimpl WhittedIntegrator
 
impl WhittedIntegrator
pub fn new(
    max_depth: u32, 
    camera: Arc<Camera>, 
    sampler: Box<Sampler>, 
    pixel_bounds: Bounds2i
) -> Self
pub fn preprocess(&mut self, _scene: &Scene)
pub fn li(
    &self, 
    ray: &mut Ray, 
    scene: &Scene, 
    sampler: &mut Sampler, 
    depth: i32
) -> Spectrum
pub fn get_camera(&self) -> Arc<Camera>
pub fn get_sampler(&self) -> &Sampler
pub fn get_pixel_bounds(&self) -> Bounds2i
pub fn specular_reflect(
    &self, 
    ray: &Ray, 
    isect: &SurfaceInteraction<'_>, 
    scene: &Scene, 
    sampler: &mut Sampler, 
    depth: i32
) -> Spectrum
pub fn specular_transmit(
    &self, 
    ray: &Ray, 
    isect: &SurfaceInteraction<'_>, 
    scene: &Scene, 
    sampler: &mut Sampler, 
    depth: i32
) -> Spectrum
Auto Trait Implementations
impl RefUnwindSafe for WhittedIntegrator
impl Send for WhittedIntegrator
impl Sync for WhittedIntegrator
impl Unpin for WhittedIntegrator
impl UnwindSafe for WhittedIntegrator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more