diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-24 16:36:02 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-24 16:36:02 +0000 |
commit | 1c3e7e81049efefe8b54e4d4a719feeda995b474 (patch) | |
tree | 3a5474dfbc515c16589ae6863fba1116d7b83ec3 /gfx/gl/transform.cpp | |
parent | Big tidy up of shader wrapper (diff) | |
download | ilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.tar.bz2 ilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.tar.xz ilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.zip |
Remove the weird view/model/camera connectedness
Diffstat (limited to 'gfx/gl/transform.cpp')
-rw-r--r-- | gfx/gl/transform.cpp | 10 |
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; -} |