Skip to main content

gizmo_camera

Function gizmo_camera 

Source
pub fn gizmo_camera(view: &ViewCamera) -> GizmoCamera
Expand description

Build the gizmo camera the widgets consume from the engine’s live camera. The view_proj is byte-identical to the render core’s Camera::view_proj (both from ViewCamera::resolve), so widgets project to exactly the view the engine renders solids with. viewport is CSS pixels (what the gizmo screen-constant sizing keys off).