Skip to main content

draw_camera_gizmo

Function draw_camera_gizmo 

Source
fn draw_camera_gizmo(
    pass: &mut DrawPass<'_>,
    view_camera: &Camera,
    transform: &Transform,
    component: &CameraComponent,
    color: Color,
)
Expand description

Draws an 8-line wireframe pyramid (eye to 4 far-plane corners, plus the far rectangle) representing component’s frustum at transform, projected through view_camera (the camera currently driving the viewport).