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

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

Required Methods

Implementors

impl Medium for HomogeneousMedium
[src]