pub enum ShadowCamera {
Perspective(PerspectiveCamera),
Orthographic(OrthographicCamera),
}Expand description
LightShadow.camera — a PerspectiveCamera for SpotLightShadow, an
OrthographicCamera for DirectionalLightShadow.
Variants§
Perspective(PerspectiveCamera)
The spot- and point-light shadow camera.
Orthographic(OrthographicCamera)
The directional-light shadow camera.
Implementations§
Source§impl ShadowCamera
impl ShadowCamera
Sourcepub fn set_bounds(&mut self, left: f64, right: f64, top: f64, bottom: f64)
pub fn set_bounds(&mut self, left: f64, right: f64, top: f64, bottom: f64)
shadow.camera.left / right / top / bottom — only the directional
light’s orthographic shadow camera has them.
Sourcepub fn is_orthographic(&self) -> bool
pub fn is_orthographic(&self) -> bool
shadow.camera.isOrthographicCamera — ShadowNode.setupShadowCoord()
branches on it (and so does _updateMatrix, through
coordinateSystem).
Sourcepub fn projection_matrix(&self) -> Matrix4
pub fn projection_matrix(&self) -> Matrix4
shadow.camera.projectionMatrix.
Sourcepub fn matrix_world(&self) -> Matrix4
pub fn matrix_world(&self) -> Matrix4
shadow.camera.matrixWorld.
Sourcepub fn matrix_world_inverse(&self) -> Matrix4
pub fn matrix_world_inverse(&self) -> Matrix4
shadow.camera.matrixWorldInverse.
Sourcepub fn update_projection_matrix(&mut self)
pub fn update_projection_matrix(&mut self)
shadow.camera.updateProjectionMatrix().
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ShadowCamera
impl !Send for ShadowCamera
impl !Sync for ShadowCamera
impl !UnwindSafe for ShadowCamera
impl Freeze for ShadowCamera
impl Unpin for ShadowCamera
impl UnsafeUnpin for ShadowCamera
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