[][src]Trait pbrt::core::medium::Medium

pub trait Medium {
    fn tr(
        &self,
        ray: &Ray,
        sampler: &mut Box<dyn Sampler + Send + Sync>
    ) -> Spectrum;
fn sample(
        &self,
        ray: &Ray,
        sampler: &mut Box<dyn Sampler + Send + Sync>
    ) -> (Spectrum, Option<MediumInteraction>); }

Required methods

fn tr(
    &self,
    ray: &Ray,
    sampler: &mut Box<dyn Sampler + Send + Sync>
) -> Spectrum

fn sample(
    &self,
    ray: &Ray,
    sampler: &mut Box<dyn Sampler + Send + Sync>
) -> (Spectrum, Option<MediumInteraction>)

Loading content...

Implementors

impl Medium for GridDensityMedium[src]

impl Medium for HomogeneousMedium[src]

Loading content...