Skip to main content

Module prelude

Module prelude 

Source
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.
ClearColor
A Resource that stores the default color that cameras use to clear the screen between frames.
InheritedVisibility
Whether or not an entity is visible in the hierarchy.
OrthographicProjection
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.
PerspectiveProjection
A 3D camera projection in which distant objects appear smaller than close objects.
ViewVisibility
Algorithmically computed indication of whether an entity is visible and should be extracted for rendering.

Enums§

ClearColorConfig
For a camera, specifies the color used to clear the viewport before rendering or when writing to the final render target texture.
CompositingSpace
Color space for alpha compositing. Affects how overlapping semi-transparent layers blend.
MsaaWriteback
Controls when MSAA writeback occurs for a camera.
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.