![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
Flattened camera for the frame. More...
#include <camera_data.h>
Static Public Member Functions | |
| static CameraData | from (const glm::mat4 &view, const glm::mat4 &projection, const glm::vec3 &position) |
| A camera with every derived field filled from its two matrices. | |
Public Attributes | |
| float | zNear = 0.1f |
| Extracted from the projection. | |
| float | zFar = 1000.0f |
| Extracted from the projection. | |
Flattened camera for the frame.
|
inlinestatic |
A camera with every derived field filled from its two matrices.
Build a camera here, not field by field, so no derivative is stale.
| view | World to view. |
| projection | View to clip, perspective or orthographic. |
| position | The eye in world space. |