Expand description
The camera prelude.
This includes the most common types in this crate, re-exported for your convenience.
Structs§
- Camera
- The defining
Component
for camera entities, storing information about how and what to render through this camera. - Camera2d
- A 2D camera component. Enables the 2D render graph for a
Camera
. - Camera3d
- A 3D camera component. Enables the main 3D render graph for a
Camera
. - Clear
Color - A
Resource
that stores the default color that cameras use to clear the screen between frames. - Inherited
Visibility - Whether or not an entity is visible in the hierarchy.
This will not be accurate until
VisibilityPropagate
runs in thePostUpdate
schedule. - Orthographic
Projection - Project a 3D space onto a 2D surface using parallel lines, i.e., unlike
PerspectiveProjection
, the size of objects remains the same regardless of their distance to the camera. - Perspective
Projection - A 3D camera projection in which distant objects appear smaller than close objects.
- View
Visibility - Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering.
Enums§
- Clear
Color Config - For a camera, specifies the color used to clear the viewport before rendering or when writing to the final render target texture.
- Projection
- Component that defines how to compute a
Camera
’s projection matrix. - Visibility
- User indication of whether an entity is visible. Propagates down the entity hierarchy.