From b3031647e69eb28c3b7a89393ce4f42f33d30c04 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sat, 31 Mar 2018 08:43:14 +0200 Subject: [PATCH] Removed unused matrix calculations and assignment Fixes #448 --- examples/shadowmappingcascade/shadowmappingcascade.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/examples/shadowmappingcascade/shadowmappingcascade.cpp b/examples/shadowmappingcascade/shadowmappingcascade.cpp index b6273cd8..361e3a58 100644 --- a/examples/shadowmappingcascade/shadowmappingcascade.cpp +++ b/examples/shadowmappingcascade/shadowmappingcascade.cpp @@ -832,15 +832,6 @@ public: /* Scene rendering */ - uboVS.projection = glm::perspective(glm::radians(45.0f), (float)width / (float)height, zNear, zFar); - - uboVS.view = glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, zoom)); - uboVS.view = glm::rotate(uboVS.view, glm::radians(rotation.x), glm::vec3(1.0f, 0.0f, 0.0f)); - uboVS.view = glm::rotate(uboVS.view, glm::radians(rotation.y), glm::vec3(0.0f, 1.0f, 0.0f)); - uboVS.view = glm::rotate(uboVS.view, glm::radians(rotation.z), glm::vec3(0.0f, 0.0f, 1.0f)); - - uboVS.model = glm::mat4(1.0f); - uboVS.projection = camera.matrices.perspective; uboVS.view = camera.matrices.view; uboVS.model = glm::mat4(1.0f);