1#include "CameraComponent.h"
14 TypeDatabase::createType<ProjectionMode>().setEnumerators(enums);
23 TypeDatabase::createType<CameraFlags>().setEnumerators(cameraFlags).
36 Field(
"keepThreshold", &CameraComponent::keepThreshold),
55 TypeDatabase::createType<CameraComponent>().setBase<Component>().setFields(fields);
CameraFlags flags
Camera behavior flags.
float fieldOfView
Vertical field of view, given in radians.
uint32_t clientFlags
Application defined, camera specific flags passed to shaders.
float farPlaneLimit
Largest value allowed to adjust far plane to.
LightingLayers lightingMask
Lighting mask used to determine which lights are active for the current viewport.
bool enableClippingPlaneAdjustment
If automatic adjustment of the clipping planes should be performed to fit as much of the scene as pos...
glm::vec2 subsetMin
Subset of the frustum to view (for only rendering a subset of the view covered by the viewport),...
glm::vec2 viewportSize
Size of the viewport covered by this instance, given in pixels.
std::string renderPipeline
Render pipeline to apply when rendering to texture. Defaults to the built-in forward rendering pipeli...
ProjectionMode projectionMode
The projection mode to use for the camera.
float focalDistance
Focal distance of the camera, given in scene units.
RenderLayers layerMask
Layer mask used to determine which RenderComponent instances should be visible in this cameras viewpo...
float nearPlaneLimit
Smallest value allowed to adjust near plane to.
TextureHandle renderTexture
The render texture to output the rendered scene from the camera to.
glm::vec2 subsetMax
Subset of the frustum to view (for only rendering a subset of the view covered by the viewport),...
std::vector< std::string > renderPipelineOptions
Extra options passed when creating the render pipeline,.
glm::vec2 viewportOrigin
Origin of the viewport covered by this instance, given in screen units from the lower left.
EntityPtr environment
Environment to use for rendering.
float exposure
Exposure factor for HDR rendering.
float orthoHeight
Height of the viewport in scene units when using orthographic projection.
int32_t stackOrder
Specifies the ordering of cameras when rendering to the same render target, lower numbers render befo...
static void registerType()
Register the type in the type system.
float discardThreshold
Discard objects occupying less pixels than threshold.
Field definition describing a single data member of a data structure.
Field & add(T attribute)
Adds the given attribute.
Field & setSerialize(bool serialize)
Mark if field shall be serializable, e.g. value saved generating Scene. Default = true.
@ EnableRender
Renderable.
@ None
No flags specified.
@ EnablePicking
Supports picking.
@ Orthographic
Orthographic projection.
@ Perspective
Perspective projection.
Contains reflection support.
Adds range information to an object.