Nameless Engine
|
#include <CameraProperties.h>
Public Attributes | |
glm::mat4x4 | projectionMatrix = glm::identity<glm::mat4x4>() |
bool | bProjectionMatrixNeedsUpdate = true |
bool | bLightGridFrustumsNeedUpdate = true |
float | nearClipPlaneDistance = 0.3F |
float | farClipPlaneDistance = 500.0F |
unsigned int | iVerticalFov = 90 |
unsigned int | iRenderTargetWidth = 800 |
unsigned int | iRenderTargetHeight = 600 |
float | nearClipPlaneHeight = 0.0F |
float | farClipPlaneHeight = 0.0F |
Stores data used for projection matrix.
bool ne::CameraProperties::Data::ProjectionData::bLightGridFrustumsNeedUpdate = true |
Used by the renderer to track if projectionMatrix was changed or not to recalculate grid of frustums for light culling.
true
and only renderer is allowed to set this value to false
. bool ne::CameraProperties::Data::ProjectionData::bProjectionMatrixNeedsUpdate = true |
Whether projectionMatrix needs to be recalculated or not.
float ne::CameraProperties::Data::ProjectionData::farClipPlaneDistance = 500.0F |
Distance to camera's far clip plane.
float ne::CameraProperties::Data::ProjectionData::farClipPlaneHeight = 0.0F |
Height of camera's far clip plane.
unsigned int ne::CameraProperties::Data::ProjectionData::iRenderTargetHeight = 600 |
Height of the buffer we are rendering the image to.
unsigned int ne::CameraProperties::Data::ProjectionData::iRenderTargetWidth = 800 |
Width of the buffer we are rendering the image to.
unsigned int ne::CameraProperties::Data::ProjectionData::iVerticalFov = 90 |
Vertical field of view.
float ne::CameraProperties::Data::ProjectionData::nearClipPlaneDistance = 0.3F |
Distance from camera (view) space origin to camera's near clip plane.
float ne::CameraProperties::Data::ProjectionData::nearClipPlaneHeight = 0.0F |
Height of camera's near clip plane.
glm::mat4x4 ne::CameraProperties::Data::ProjectionData::projectionMatrix = glm::identity<glm::mat4x4>() |
Transforms positions from view (camera) space to 2D projection window (homogeneous clip space).