Skip to main content

screen_viewport

Function screen_viewport 

Source
pub fn screen_viewport(viewport_points: [f32; 2]) -> View
Available on crate feature egui only.
Expand description

The view to bind beside screen_view.

The clipping is in points, so the size a shader measures against is the point size too: that is what keeps the two in one unit.