Module ambient_api_core::camera
source · Expand description
Helper functions for the camera.
Functions
- Converts clip-space coordinates to a Ray in world space.
- get_active
client
Get the active camera. - Converts a screen position (e.g. mouse position) to a Ray in world space.
- screen_to_clip_space
client
Converts a screen position (e.g. mouse position) to clip-space coordinates for the window. - world_to_screen
client
Converts a world-space position to a screen position (e.g. mouse position).