From 2339a48201189102434f0e367659f7e90db8150c Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 4 Dec 2014 12:19:39 +0100 Subject: [PATCH] Changing directional light vector to match origin of the sun on the skysphere texture. --- level.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level.cc b/level.cc index 036ea6c..b6ca270 100644 --- a/level.cc +++ b/level.cc @@ -75,7 +75,7 @@ void Level::load() { //set lighting parameters ambientLight = glm::vec3(1.0f, 1.0f, 1.0f); fogColor = glm::vec4(0.10f, 0.14f, 0.14f, 1.0f); - directionalLight = Light(glm::vec3(-0.1f, 0.8f, -0.9f), glm::vec3(1.0f, 1.0f, 0.9f), 0.2f); + directionalLight = Light(glm::vec3(-1.0f, 1.5f, 1.0f), glm::vec3(1.0f, 1.0f, 0.9f), 0.2f); Light light = Light(glm::vec3(-3.0f, 7.0f, 0.0f), glm::vec3(1.0f, 1.0f, 1.0f), 5.0f); lights.push_back(light); Light light2 = Light(glm::vec3(3.0f, 7.0f, 0.0f), glm::vec3(1.0f, 1.0f, 1.0f), 10.0f);