Function ambient_api::prelude::camera::screen_to_clip_space
source · pub fn screen_to_clip_space(screen_position: Vec2) -> Vec2
Expand description
Converts a screen position (e.g. mouse position) to clip-space coordinates for the window.