Nameless Engine
|
#include <FrameResourceManager.h>
Public Attributes | |
glm::mat4x4 | viewMatrix = glm::identity<glm::mat4x4>() |
glm::mat4x4 | viewProjectionMatrix = glm::identity<glm::mat4x4>() |
glm::vec4 | cameraPosition = glm::vec4(0.0F, 0.0F, 0.0F, 0.0F) |
float | timeSincePrevFrameInSec = 0.0F |
float | totalTimeInSec = 0.0F |
Stores frame-global constants. Used by shaders.
glm::vec4 ne::FrameConstants::cameraPosition = glm::vec4(0.0F, 0.0F, 0.0F, 0.0F) |
Camera's world location. 4th component is not used
float ne::FrameConstants::timeSincePrevFrameInSec = 0.0F |
Time that has passed since the last frame in seconds (i.e. delta time).
float ne::FrameConstants::totalTimeInSec = 0.0F |
Time since the first window was created (in seconds).
glm::mat4x4 ne::FrameConstants::viewMatrix = glm::identity<glm::mat4x4>() |
Camera's view matrix.
glm::mat4x4 ne::FrameConstants::viewProjectionMatrix = glm::identity<glm::mat4x4>() |
Camera's view matrix multiplied by camera's projection matrix.