summaryrefslogtreecommitdiff
path: root/application/main.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-17 01:01:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-17 01:01:55 +0000
commite360e95dcbdc8868e50cfb515942d796619aca21 (patch)
tree208a1c589d6ced65954ec4875b9f2ca71a6668cc /application/main.cpp
parentDisconnect camera control from shader (diff)
downloadilt-e360e95dcbdc8868e50cfb515942d796619aca21.tar.bz2
ilt-e360e95dcbdc8868e50cfb515942d796619aca21.tar.xz
ilt-e360e95dcbdc8868e50cfb515942d796619aca21.zip
Support multiple shader programs, set by model
Diffstat (limited to 'application/main.cpp')
-rw-r--r--application/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 72da726..41bc15a 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -83,8 +83,8 @@ public:
Camera camera({-1250.0F, 35.0F, -1250.0F}, 70.0F, (float)DISPLAY_WIDTH / (float)DISPLAY_HEIGHT, 0.1F, 10000.0F);
camera.Pitch(0.24);
camera.RotateY(0.7854);
- shader.Bind();
shader.setView(camera.GetViewProjection());
+ shader.setLight(glm::normalize(glm::vec3 {1, -1, 0}));
auto t_start = std::chrono::high_resolution_clock::now();
const auto framelen = std::chrono::milliseconds {1000} / 120;