[][src]Struct pbrt::integrators::volpath::VolPathIntegrator

pub struct VolPathIntegrator {
    pub camera: Arc<Camera>,
    pub sampler: Box<dyn Sampler + Send + Sync>,
    pub pixel_bounds: Bounds2i,
    pub max_depth: u32,
    pub rr_threshold: Float,
    pub light_sample_strategy: String,
    pub light_distribution: Option<Arc<LightDistribution>>,
}

Accounts for scattering and attenuation from participating media as well as scattering from surfaces

Fields

camera: Arc<Camera>sampler: Box<dyn Sampler + Send + Sync>pixel_bounds: Bounds2imax_depth: u32rr_threshold: Floatlight_sample_strategy: Stringlight_distribution: Option<Arc<LightDistribution>>

Methods

impl VolPathIntegrator[src]

pub fn new(
    max_depth: u32,
    camera: Arc<Camera>,
    sampler: Box<dyn Sampler + Send + Sync>,
    pixel_bounds: Bounds2i,
    rr_threshold: Float,
    light_sample_strategy: String
) -> Self
[src]

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

pub fn li(
    &self,
    r: &mut Ray,
    scene: &Scene,
    sampler: &mut Box<dyn Sampler + Send + Sync>,
    _depth: i32
) -> Spectrum
[src]

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

pub fn get_sampler(&self) -> &Box<dyn Sampler + Send + Sync>[src]

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

Auto Trait Implementations

impl Send for VolPathIntegrator

impl Unpin for VolPathIntegrator

impl Sync for VolPathIntegrator

impl !UnwindSafe for VolPathIntegrator

impl !RefUnwindSafe for VolPathIntegrator

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> SetParameter for T[src]