Available on crate feature
bevy_camera only.Modules§
- prelude
- The camera prelude.
- primitives
- visibility
- Components that control the visibility of entities.
Structs§
- Camera
- The defining
Componentfor 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. - Camera3d
Depth Texture Usage - Camera
Main Texture Usages - This component lets you control the
TextureUsagesfield of the main texture generated for the camera - Camera
Plugin - Camera
Projection Plugin - Adds
Cameradriver systems for a given projection type. - Camera
Update Systems - Label for
camera_system<T>, shared across allT. - Clear
Color - A
Resourcethat stores the default color that cameras use to clear the screen between frames. - Computed
Camera Values - Holds internally computed
Cameravalues. - Custom
Projection - Holds a dynamic
CameraProjectiontrait object. UseProjection::custom()to construct a custom projection. - Exposure
- How much energy a
Camera3dabsorbs from incoming light. - Hdr
- If this component is added to a camera, the camera will use an intermediate “high dynamic range” render texture. This allows rendering with a wider range of lighting values. However, this does not affect whether the camera will render with hdr display output (which bevy does not support currently) and only affects the intermediate render texture.
- Image
Render Target - A render target that renders to an
Image. - Image
Render Target Template - Main
Pass Resolution Override - Override the resolution a 3d camera’s main pass is rendered at.
- Manual
Texture View Handle - A unique id that corresponds to a specific
ManualTextureViewin theManualTextureViewscollection. - Manual
Texture View Handle Template - 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.
- Physical
Camera Parameters - Parameters based on physical camera characteristics for calculating EV100
values for use with
Exposure. This is also used for depth of field. - Render
Target Info - Information about the current
RenderTarget. - Shadow
LodOrigin - The entity that Bevy uses to resolve visibility ranges when no specific camera is applicable.
- SubCamera
View - Settings to define a camera sub view.
- Viewport
- Render viewport configuration for the
Cameracomponent.
Enums§
- Camera3d
Depth Load Op - The depth clear operation to perform for the main 3d pass.
- Camera
Output Mode - Control how this
Cameraoutputs once rendering is completed. - 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.
- Compositing
Space - Color space for alpha compositing. Affects how overlapping semi-transparent layers blend.
- Msaa
Writeback - Controls when MSAA writeback occurs for a camera.
- Normalized
Render Target - Normalized version of the render target.
- Projection
- Component that defines how to compute a
Camera’s projection matrix. - Render
Target - The “target” that a
Camerawill render to. For example, this could be aWindowswapchain or anImage. - Render
Target Template - Scaling
Mode - Scaling mode for
OrthographicProjection. - Viewport
Conversion Error - Error returned when a conversion between world-space and viewport-space coordinates fails.
Traits§
- Camera
Projection - Describes a type that can generate a projection matrix, allowing it to be added to a
Camera’sProjectioncomponent.