struct
Camera
pub struct Camera {
pub position: Vec3,
pub target: Vec3,
pub fov_deg: f32,
pub near: f32,
pub far: f32,
}A scene's camera: where it is, what it looks at, and its field of view and clipping planes.
Fields
Methods
projection
pub fn projection(&self, aspect: f32) -> Mat4The perspective projection for a surface of aspect (width / height).