[][src]Trait pbrt::core::camera::Camera

pub trait Camera {
    fn generate_ray_differential(
        &self,
        sample: &CameraSample,
        ray: &mut Ray
    ) -> Float;
fn we(&self, ray: &Ray, p_raster2: Option<&mut Point2f>) -> Spectrum;
fn pdf_we(&self, ray: &Ray) -> (Float, Float);
fn sample_wi(
        &self,
        iref: &InteractionCommon,
        u: &Point2f,
        wi: &mut Vector3f,
        pdf: &mut Float,
        p_raster: &mut Point2f,
        vis: &mut VisibilityTester
    ) -> Spectrum;
fn get_shutter_open(&self) -> Float;
fn get_shutter_close(&self) -> Float;
fn get_film(&self) -> Arc<Film>; }

Required methods

fn generate_ray_differential(
    &self,
    sample: &CameraSample,
    ray: &mut Ray
) -> Float

fn we(&self, ray: &Ray, p_raster2: Option<&mut Point2f>) -> Spectrum

fn pdf_we(&self, ray: &Ray) -> (Float, Float)

fn sample_wi(
    &self,
    iref: &InteractionCommon,
    u: &Point2f,
    wi: &mut Vector3f,
    pdf: &mut Float,
    p_raster: &mut Point2f,
    vis: &mut VisibilityTester
) -> Spectrum

fn get_shutter_open(&self) -> Float

fn get_shutter_close(&self) -> Float

fn get_film(&self) -> Arc<Film>

Loading content...

Implementors

impl Camera for EnvironmentCamera[src]

impl Camera for OrthographicCamera[src]

impl Camera for PerspectiveCamera[src]

impl Camera for RealisticCamera[src]

Loading content...