summaryrefslogtreecommitdiff
path: root/gfx/gl/transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/transform.cpp')
-rw-r--r--gfx/gl/transform.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/gfx/gl/transform.cpp b/gfx/gl/transform.cpp
index 7b256af..b67bfaf 100644
--- a/gfx/gl/transform.cpp
+++ b/gfx/gl/transform.cpp
@@ -1,5 +1,4 @@
#include "transform.h"
-#include "camera.h"
#include <glm/gtx/transform.hpp>
Transform::Transform(glm::vec3 pos, glm::vec3 rot, glm::vec3 scale) : pos {pos}, rot {rot}, scale {scale} { }
@@ -16,12 +15,3 @@ Transform::GetModel() const
return posMat * rotMat * scaleMat;
}
-
-glm::mat4
-Transform::GetMVP(const Camera & camera) const
-{
- const auto VP = camera.GetViewProjection();
- const auto M = GetModel();
-
- return VP * M;
-}