Struct gltf::v1::camera::Camera
[−]
[src]
pub struct Camera { pub orthographic: Option<Orthographic>, pub perspective: Option<Perspective>, pub kind: CameraType, pub name: Option<String>, }
Fields
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.
kind: CameraType
Specifies if the camera uses a perspective or orthographic projection.
Based on this, either the camera's perspective or orthographic property will be defined.
name: Option<String>
The user-defined name of this object.
This is not necessarily unique, e.g., a camera and a buffer could have the same name, or two cameras could even have the same name.