[][src]Struct pbrt::cameras::environment::EnvironmentCamera

pub struct EnvironmentCamera {
    pub camera_to_world: AnimatedTransform,
    pub shutter_open: Float,
    pub shutter_close: Float,
    pub film: Arc<Film>,
    pub medium: Option<Arc<Medium>>,
}

Fields

camera_to_world: AnimatedTransformshutter_open: Floatshutter_close: Floatfilm: Arc<Film>medium: Option<Arc<Medium>>

Methods

impl EnvironmentCamera[src]

pub fn new(
    camera_to_world: AnimatedTransform,
    shutter_open: Float,
    shutter_close: Float,
    film: Arc<Film>,
    medium: Option<Arc<Medium>>
) -> Self
[src]

pub fn create(
    params: &ParamSet,
    cam2world: AnimatedTransform,
    film: Arc<Film>,
    medium: Option<Arc<Medium>>
) -> Arc<Camera>
[src]

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

pub fn we(&self, _ray: &Ray, _p_raster2: Option<&mut Point2f>) -> Spectrum[src]

pub fn pdf_we(&self, _ray: &Ray) -> (Float, Float)[src]

pub fn sample_wi(
    &self,
    _iref: &InteractionCommon,
    _u: &Point2f,
    _wi: &mut Vector3f,
    _pdf: &mut Float,
    _p_raster: &mut Point2f,
    _vis: &mut VisibilityTester
) -> Spectrum
[src]

pub fn get_shutter_open(&self) -> Float[src]

pub fn get_shutter_close(&self) -> Float[src]

pub fn get_film(&self) -> Arc<Film>[src]

Auto Trait Implementations

impl Send for EnvironmentCamera

impl Unpin for EnvironmentCamera

impl Sync for EnvironmentCamera

impl UnwindSafe for EnvironmentCamera

impl RefUnwindSafe for EnvironmentCamera

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]