Module ambient_api_core::core::camera::components
source · Expand description
Auto-generated component definitions.
Functions
- Active camera: The camera with the highest
active_camera
value will be used for rendering. Cameras are also filtered by theuser_id
. - Aspect ratio: The aspect ratio of this camera.
- Aspect ratio from window: If attached, the
aspect_ratio
component will be automatically updated to match the aspect ratio of the window. Should point to an entity with awindow_physical_size
component. - Far plane: The far plane of this camera, measured in meters.
- Fog: If attached, this camera will see/render fog.
- Field of View Y: The field of view of this camera in the Y/vertical direction, measured in radians.
- Near plane: The near plane of this camera, measured in meters.
- Orthographic projection: If attached, this camera will use a standard orthographic projection matrix.
- Orthographic bottom: The bottom bound for this
orthographic
camera. - Orthographic from window: The bounds of this orthographic camera will be updated to match the window automatically. Should point to an entity with a
window_logical_size
component. - Orthographic left: The left bound for this
orthographic
camera. - Orthographic right: The right bound for this
orthographic
camera. - Orthographic top: The top bound for this
orthographic
camera. - Perspective projection: If attached, this camera will use a standard perspective projection matrix.
- Perspective-infinite-reverse projection: If attached, this camera will use a perspective-infinite-reverse projection matrix.
- Projection: The projection matrix of this camera.
- Projection-view: The composition of the projection and view (inverse-local-to-world) matrices.
- Shadows far plane: The far plane for the shadow camera, measured in meters.