[][src]Struct pbrt::integrators::ao::AOIntegrator

pub struct AOIntegrator {
    pub camera: Arc<Camera>,
    pub sampler: Box<Sampler>,
    pub pixel_bounds: Bounds2i,
    pub cos_sample: bool,
    pub n_samples: i32,

Ambient Occlusion - uses the render loop of a SamplerIntegrator


camera: Arc<Camera>sampler: Box<Sampler>pixel_bounds: Bounds2icos_sample: booln_samples: i32


impl AOIntegrator[src]

pub fn new(
    cos_sample: bool,
    n_samples: i32,
    camera: Arc<Camera>,
    sampler: Box<Sampler>,
    pixel_bounds: Bounds2i
) -> Self

pub fn preprocess(&mut self, _scene: &Scene)[src]

pub fn li(
    ray: &mut Ray,
    scene: &Scene,
    sampler: &mut Sampler,
    _depth: i32
) -> Spectrum

pub fn get_camera(&self) -> Arc<Camera>[src]

pub fn get_sampler(&self) -> &Sampler[src]

pub fn get_pixel_bounds(&self) -> Bounds2i[src]

Auto Trait Implementations

impl RefUnwindSafe for AOIntegrator

impl Send for AOIntegrator

impl Sync for AOIntegrator

impl Unpin for AOIntegrator

impl UnwindSafe for AOIntegrator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.