Skip to main content

camera_looking_at

Function camera_looking_at 

Source
pub fn camera_looking_at(
    size: (u32, u32),
    eye: Vec3,
    target: Vec3,
    fov_y_radians: f32,
    near: f32,
) -> Camera
Expand description

A camera at eye looking at target, with a reverse-z infinite perspective of fov_y_radians fitted to size.