|
Monad Engine da02fba2
> Undercity Codex_
|
Per-frame camera matrices and world-space position. More...
#include <Common.h>
Public Attributes | |
| mat4 | viewMatrix |
| World → Camera space transform (glm::lookAt result). | |
| mat4 | projectionMatrix |
| Camera → Clip space transform (perspective or ortho). | |
| vec3 | position |
| Camera world-space position, used for specular calculations. | |
| f32 | nearPlane = kCameraNearPlane |
| Frustum near distance — used by post passes for depth linearisation. | |
| f32 | farPlane = kCameraFarPlane |
Per-frame camera matrices and world-space position.
Produced by CameraComponent each frame and consumed by RenderQueue::Draw() to set the view/projection uniforms on every material that is drawn.
| f32 mnd::CameraData::farPlane = kCameraFarPlane |
Definition at line 40 of file Common.h.
Referenced by mnd::Engine::Run().
| f32 mnd::CameraData::nearPlane = kCameraNearPlane |
Frustum near distance — used by post passes for depth linearisation.
Definition at line 39 of file Common.h.
Referenced by mnd::Engine::Run().
| vec3 mnd::CameraData::position |
Camera world-space position, used for specular calculations.
Definition at line 38 of file Common.h.
Referenced by mnd::RenderQueue::Draw(), and mnd::Engine::Run().
| mat4 mnd::CameraData::projectionMatrix |
Camera → Clip space transform (perspective or ortho).
Definition at line 37 of file Common.h.
Referenced by mnd::RenderQueue::Draw(), mnd::ParticleSystem::Render(), and mnd::Engine::Run().
| mat4 mnd::CameraData::viewMatrix |
World → Camera space transform (glm::lookAt result).
Definition at line 36 of file Common.h.
Referenced by mnd::RenderQueue::Draw(), mnd::ParticleSystem::Render(), and mnd::Engine::Run().