Struct rs_pbrt::cameras::environment::EnvironmentCamera
source · [−]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: AnimatedTransform
shutter_open: Float
shutter_close: Float
film: Arc<Film>
medium: Option<Arc<Medium>>
Implementations
sourceimpl EnvironmentCamera
impl EnvironmentCamera
pub fn new(
camera_to_world: AnimatedTransform,
shutter_open: Float,
shutter_close: Float,
film: Arc<Film>,
medium: Option<Arc<Medium>>
) -> Self
pub fn create(
params: &ParamSet,
cam2world: AnimatedTransform,
film: Arc<Film>,
medium: Option<Arc<Medium>>
) -> Arc<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(
&self,
_iref: &InteractionCommon,
_lens_intr: &mut InteractionCommon,
_u: Point2f,
_wi: &mut Vector3f,
_pdf: &mut Float,
_p_raster: &mut Point2f,
_vis: &mut VisibilityTester<'_, '_>
) -> Spectrum
pub fn get_shutter_open(&self) -> Float
pub fn get_shutter_close(&self) -> Float
pub fn get_film(&self) -> Arc<Film>
Auto Trait Implementations
impl RefUnwindSafe for EnvironmentCamera
impl Send for EnvironmentCamera
impl Sync for EnvironmentCamera
impl Unpin for EnvironmentCamera
impl UnwindSafe for EnvironmentCamera
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more