13 void Serialize(Json::Value& node,
bool load)
override;
58 glm::vec4
viewport = glm::vec4(0.0f, 0.0f, 1.0f, 1.0f);
Component handling a camera through which the world can be rendered.
Definition: Camera.hpp:8
Camera()
Create new camera.
Definition: Camera.cpp:9
int32_t order
The order in the camera stack.
Definition: Camera.hpp:52
FilterSettings filterSettings
Filter settings.
Definition: Camera.hpp:91
uint32_t layerMask
Bitmask of which layers the camera should show.
Definition: Camera.hpp:61
glm::vec4 viewport
Viewport.
Definition: Camera.hpp:58
float size
The size of the view volume.
Definition: Camera.hpp:37
bool overlay
Whether the camera should be rendered with a transparent background.
Definition: Camera.hpp:55
void Serialize(Json::Value &node, bool load) override
Save or load component values to/from JSON.
Definition: Camera.cpp:11
bool orthographic
Whether the camera should use an orthographic projection, otherwise perspective projection.
Definition: Camera.hpp:23
float zNear
Near plane.
Definition: Camera.hpp:43
float fieldOfView
Field of view, in degrees.
Definition: Camera.hpp:30
glm::mat4 GetProjection(const glm::vec2 &screenSize) const
Get the projection matrix.
Definition: Camera.cpp:33
float zFar
Far plane.
Definition: Camera.hpp:49
Component which all components inherit.
Definition: SuperComponent.hpp:9
Definition: BoxShapeEditor.hpp:5
Filter settings.
Definition: Camera.hpp:64
float bloomThreshold
Threshold for the bloom effect.
Definition: Camera.hpp:84
float bloomIntensity
Intensity of the bloom effect.
Definition: Camera.hpp:81
float bloomScatter
How scattered the bloom effect should be.
Definition: Camera.hpp:87
bool ditherApply
Whether to enable dithering.
Definition: Camera.hpp:69
float gamma
Gamma correction value.
Definition: Camera.hpp:75
bool fxaa
Whether to enable FXAA.
Definition: Camera.hpp:66
bool bloom
Whether to enable bloom.
Definition: Camera.hpp:78
bool tonemapping
Whether to apply tonemapping.
Definition: Camera.hpp:72