pub struct Camera {
pub name: Option<String>,
pub orthographic: Option<Orthographic>,
pub perspective: Option<Perspective>,
pub type_: Checked<Type>,
pub extensions: Option<Camera>,
pub extras: Extras,
}
Expand description
A camera’s projection.
A node can reference a camera to apply a transform to place the camera in the scene.
Fields§
§name: Option<String>
Optional user-defined name for this object.
orthographic: Option<Orthographic>
An orthographic camera containing properties to create an orthographic projection matrix.
perspective: Option<Perspective>
A perspective camera containing properties to create a perspective projection matrix.
type_: Checked<Type>
Specifies if the camera uses a perspective or orthographic projection.
extensions: Option<Camera>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Camera
impl<'de> Deserialize<'de> for Camera
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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