pub enum CameraProjection {
Orthographic {
size: Vec3A,
},
Perspective {
vfov: f32,
near: f32,
},
Raw(Mat4),
}
Expand description
Describes how the world should be projected into the camera.
Variants§
Trait Implementations§
Source§impl Clone for CameraProjection
impl Clone for CameraProjection
Source§fn clone(&self) -> CameraProjection
fn clone(&self) -> CameraProjection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CameraProjection
impl Debug for CameraProjection
Source§impl Default for CameraProjection
impl Default for CameraProjection
impl Copy for CameraProjection
Auto Trait Implementations§
impl Freeze for CameraProjection
impl RefUnwindSafe for CameraProjection
impl Send for CameraProjection
impl Sync for CameraProjection
impl Unpin for CameraProjection
impl UnwindSafe for CameraProjection
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