From 1c3e7e81049efefe8b54e4d4a719feeda995b474 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Jan 2021 16:36:02 +0000 Subject: Remove the weird view/model/camera connectedness --- game/physical.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'game/physical.cpp') 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 #include +#include Cache Physical::cachedMesh; Cache 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(); } -- cgit v1.2.3