1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use gltf_derive::Validate; use serde_derive::{Serialize, Deserialize}; /// A camera's projection. /// /// A node can reference a camera to apply a transform to place the camera in the /// scene. #[derive(Clone, Debug, Default, Deserialize, Serialize, Validate)] pub struct Camera {} /// Values for an orthographic camera. #[derive(Clone, Debug, Default, Deserialize, Serialize, Validate)] pub struct Orthographic {} /// Values for a perspective camera. #[derive(Clone, Debug, Default, Deserialize, Serialize, Validate)] pub struct Perspective {}