Function ambient_api::prelude::camera::clip_position_to_world_ray
source · pub fn clip_position_to_world_ray(
camera: EntityId,
clip_space_position: Vec2
) -> Ray
Expand description
Converts clip-space coordinates to a Ray in world space.
To obtain clip-space coordinates, use screen_to_clip_space.