Expose view and projection matrix to shader

This commit is contained in:
2021-02-12 19:47:11 +01:00
parent 8dc50ab279
commit 97cb8d1ac9
4 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ namespace openVulkanoCpp
protected:
float width, height, nearPlane, farPlane;
Math::Matrix4f projection, view, viewProjection;
Math::Matrix4f viewProjection, view, projection;
Camera() : width(0), height(0), nearPlane(0), farPlane(0), projection(1), view(1), viewProjection(1) {}