Module camera

Source

Structs§

Camera
The defining Component for camera entities, storing information about how and what to render through this camera.
CameraDriverNode
CameraMainTextureUsages
This component lets you control the TextureUsages field of the main texture generated for the camera
CameraPlugin
CameraProjectionPlugin
Adds Camera driver systems for a given projection type.
CameraRenderGraph
Configures the RenderGraph name assigned to be run for a given Camera entity.
CameraUpdateSystem
Label for camera_system<T>, shared across all T.
ClearColor
A Resource that stores the color that is used to clear the screen between frames.
ComputedCameraValues
Holds internally computed Camera values.
Exposure
How much energy a Camera3d absorbs from incoming light.
ExtractedCamera
ManualTextureView
A manually managed TextureView for use as a crate::camera::RenderTarget.
ManualTextureViewHandle
A unique id that corresponds to a specific ManualTextureView in the ManualTextureViews collection.
ManualTextureViews
Stores manually managed ManualTextureViews for use as a crate::camera::RenderTarget.
MipBias
Camera component specifying a mip bias to apply when sampling from material textures.
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.
PhysicalCameraParameters
Parameters based on physical camera characteristics for calculating EV100 values for use with Exposure. This is also used for depth of field.
RenderTargetInfo
Information about the current RenderTarget.
SortedCamera
SortedCameras
Cameras sorted by their order field. This is updated in the sort_cameras system.
SubCameraView
Settings to define a camera sub view.
TemporalJitter
A subpixel offset to jitter a perspective camera’s frustum by.
Viewport
Render viewport configuration for the Camera component.

Enums§

CameraOutputMode
Control how this camera outputs once rendering is completed.
ClearColorConfig
For a camera, specifies the color used to clear the viewport before rendering.
NormalizedRenderTarget
Normalized version of the render target.
Projection
A configurable CameraProjection that can select its projection type at runtime.
RenderTarget
The “target” that a Camera will render to. For example, this could be a Window swapchain or an Image.
ScalingMode
Scaling mode for OrthographicProjection.
ViewportConversionError
Error returned when a conversion between world-space and viewport-space coordinates fails.

Traits§

CameraProjection
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