summaryrefslogtreecommitdiff
path: root/game/physical.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-24 16:36:02 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-24 16:36:02 +0000
commit1c3e7e81049efefe8b54e4d4a719feeda995b474 (patch)
tree3a5474dfbc515c16589ae6863fba1116d7b83ec3 /game/physical.cpp
parentBig tidy up of shader wrapper (diff)
downloadilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.tar.bz2
ilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.tar.xz
ilt-1c3e7e81049efefe8b54e4d4a719feeda995b474.zip
Remove the weird view/model/camera connectedness
Diffstat (limited to 'game/physical.cpp')
-rw-r--r--game/physical.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/game/physical.cpp b/game/physical.cpp
index 5263268..17d85dd 100644
--- a/game/physical.cpp
+++ b/game/physical.cpp
@@ -3,6 +3,7 @@
#include "gfx/models/texture.h"
#include <cache.h>
#include <gfx/gl/shader.h>
+#include <gfx/gl/transform.h>
Cache<Mesh> Physical::cachedMesh;
Cache<Texture> Physical::cachedTexture;
@@ -13,9 +14,9 @@ Physical::Physical(glm::vec3 where, const std::string & m, const std::string & t
}
void
-Physical::render(const Shader & shader, const Camera & camera) const
+Physical::render(const Shader & shader) const
{
- shader.Update(location, camera);
+ shader.setModel(location.GetModel());
texture->Bind();
mesh->Draw();
}