Skip to main content

orbit_camera

Function orbit_camera 

Source
fn orbit_camera(size: (u32, u32), azimuth: f32, elevation: f32) -> Camera
Expand description

A camera orbiting ORBIT_TARGET at azimuth and elevation, in radians.

The projection comes from super::camera_looking_at, so it follows the frame’s own aspect: the built-in pipeline compares depth with Greater and clears to the far plane, so the projection is reverse-z infinite.