summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
Diffstat (limited to 'game')
-rw-r--r--game/physical.cpp5
-rw-r--r--game/physical.h3
2 files changed, 4 insertions, 4 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();
}
diff --git a/game/physical.h b/game/physical.h
index ad2207d..5f624b0 100644
--- a/game/physical.h
+++ b/game/physical.h
@@ -6,7 +6,6 @@
#include <memory>
#include <string>
-class Camera;
class Shader;
class Mesh;
class Texture;
@@ -16,7 +15,7 @@ class Physical {
public:
Physical(glm::vec3 where, const std::string & m, const std::string & t);
- void render(const Shader & shader, const Camera & camera) const;
+ void render(const Shader & shader) const;
[[nodiscard]] const auto &
getPosition() const