From 17eefb332443ccdb017e75a2f593c37f312fcdc2 Mon Sep 17 00:00:00 2001 From: Thyme1 Date: Thu, 30 Dec 2021 14:27:10 +0100 Subject: [PATCH] change lightDir --- grafika_projekt/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafika_projekt/src/main.cpp b/grafika_projekt/src/main.cpp index 4e3dc6c..e99c1c6 100644 --- a/grafika_projekt/src/main.cpp +++ b/grafika_projekt/src/main.cpp @@ -21,7 +21,7 @@ unsigned int cubemapTexture, skyboxVAO; float old_x, old_y = -1; glm::vec3 cursorDiff; -glm::vec3 lightDir = glm::normalize(glm::vec3(0.0f, 0.0f, 1.0f)); +glm::vec3 lightDir = glm::normalize(glm::vec3(1.0f, -10.f, -1.0f)); glm::vec3 cameraPos = glm::vec3(0, 0, 5); glm::vec3 cameraDir; // Wektor "do przodu" kamery glm::vec3 cameraSide; // Wektor "w bok" kamery