Struct rs_pbrt::integrators::ao::AOIntegrator
source · pub struct AOIntegrator {
pub camera: Arc<Camera>,
pub sampler: Box<Sampler>,
pub pixel_bounds: Bounds2i,
pub cos_sample: bool,
pub n_samples: i32,
}
Expand description
Ambient Occlusion - uses the render loop of a SamplerIntegrator
Fields§
§camera: Arc<Camera>
§sampler: Box<Sampler>
§pixel_bounds: Bounds2i
§cos_sample: bool
§n_samples: i32
Implementations§
source§impl AOIntegrator
impl AOIntegrator
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)
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
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more