Struct rs_pbrt::integrators::path::PathIntegrator
source · [−]pub struct PathIntegrator {
pub camera: Arc<Camera>,
pub sampler: Box<Sampler>,
/* private fields */
}
Expand description
Path Tracing (Global Illumination) - uses the render loop of a SamplerIntegrator
Fields
camera: Arc<Camera>
sampler: Box<Sampler>
Implementations
sourceimpl PathIntegrator
impl PathIntegrator
pub fn new(
max_depth: u32,
camera: Arc<Camera>,
sampler: Box<Sampler>,
pixel_bounds: Bounds2i,
rr_threshold: Float,
light_sample_strategy: String
) -> Self
pub fn preprocess(&mut self, scene: &Scene)
pub fn li(
&self,
r: &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 PathIntegrator
impl Send for PathIntegrator
impl Sync for PathIntegrator
impl Unpin for PathIntegrator
impl !UnwindSafe for PathIntegrator
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