Struct gltf_json::camera::Camera []

pub struct Camera {
    pub orthographic: Option<Orthographic>,
    pub perspective: Option<Perspective>,
    pub type_: Checked<Type>,
    pub extensions: Camera,
    pub extras: Extras,
}

A camera's projection.

A node can reference a camera to apply a transform to place the camera in the scene.

Fields

An orthographic camera containing properties to create an orthographic projection matrix.

A perspective camera containing properties to create a perspective projection matrix.

Specifies if the camera uses a perspective or orthographic projection.

Extension specific data.

Optional application specific data.

Trait Implementations

impl Clone for Camera

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Camera

Formats the value using the given formatter.

impl Validate for Camera

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification.