pub enum Camera {
Environment(Box<EnvironmentCamera>),
Orthographic(Box<OrthographicCamera>),
Perspective(Box<PerspectiveCamera>),
Realistic(Box<RealisticCamera>),
}
Variants§
Environment(Box<EnvironmentCamera>)
Orthographic(Box<OrthographicCamera>)
Perspective(Box<PerspectiveCamera>)
Realistic(Box<RealisticCamera>)
Implementations§
source§impl Camera
impl Camera
pub fn generate_ray_differential( &self, sample: &CameraSample, ray: &mut Ray ) -> Float
pub fn we(&self, ray: &Ray, p_raster2: Option<&mut Point2f>) -> Spectrum
pub fn pdf_we(&self, ray: &Ray) -> (Float, Float)
pub fn sample_wi<'a, 'b>( &self, iref: &'a InteractionCommon, lens_intr: &'b mut InteractionCommon, u: Point2f, wi: &mut Vector3f, pdf: &mut Float, p_raster: &mut Point2f, vis: &mut VisibilityTester<'a, 'b> ) -> Spectrum
pub fn get_shutter_open(&self) -> Float
pub fn get_shutter_close(&self) -> Float
pub fn get_film(&self) -> Arc<Film>
pub fn get_clipping_start(&self) -> Float
pub fn adjust_to_clipping_start(&self, sample: &CameraSample, ray: &mut Ray)
Auto Trait Implementations§
impl RefUnwindSafe for Camera
impl Send for Camera
impl Sync for Camera
impl Unpin for Camera
impl UnwindSafe for Camera
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more