Structs§
- Camera
- The defining
Component
for camera entities, storing information about how and what to render through this camera. - Camera
Driver Node - Camera
Main Texture Usages - This component lets you control the
TextureUsages
field of the main texture generated for the camera - Camera
Plugin - Camera
Projection Plugin - Adds
Camera
driver systems for a given projection type. - Camera
Render Graph - Configures the
RenderGraph
name assigned to be run for a givenCamera
entity. - Camera
Update System - Label for
camera_system<T>
, shared across allT
. - Clear
Color - A
Resource
that stores the color that is used to clear the screen between frames. - Computed
Camera Values - Holds internally computed
Camera
values. - Exposure
- How much energy a
Camera3d
absorbs from incoming light. - Extracted
Camera - Manual
Texture View - A manually managed
TextureView
for use as acrate::camera::RenderTarget
. - Manual
Texture View Handle - A unique id that corresponds to a specific
ManualTextureView
in theManualTextureViews
collection. - Manual
Texture Views - Stores manually managed
ManualTextureView
s for use as acrate::camera::RenderTarget
. - MipBias
- Camera component specifying a mip bias to apply when sampling from material textures.
- 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
. - Sorted
Camera - Sorted
Cameras - Cameras sorted by their order field. This is updated in the
sort_cameras
system. - SubCamera
View - Settings to define a camera sub view.
- Temporal
Jitter - A subpixel offset to jitter a perspective camera’s frustum by.
- Viewport
- Render viewport configuration for the
Camera
component.
Enums§
- Camera
Output Mode - Control how this camera outputs once rendering is completed.
- Clear
Color Config - For a camera, specifies the color used to clear the viewport before rendering.
- Normalized
Render Target - Normalized version of the render target.
- Projection
- A configurable
CameraProjection
that can select its projection type at runtime. - Render
Target - The “target” that a
Camera
will render to. For example, this could be aWindow
swapchain or anImage
. - 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 - Trait to control the projection matrix of a camera.
Functions§
- camera_
system - System in charge of updating a
Camera
when its window or projection changes. - extract_
cameras - sort_
cameras