From ae949e814f376dfd8394abd208a5d971085561bc Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 4 Nov 2014 00:46:49 +0100 Subject: [PATCH] Changed lighting parameters to make the scene more interesting. --- level.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level.cc b/level.cc index fe66376..b621806 100644 --- a/level.cc +++ b/level.cc @@ -23,9 +23,9 @@ void Level::load(Shader shader) { objects.push_back(object); //set lighting parameters ambientLight = glm::vec3(0.1f, 0.1f, 0.1f); - Light light = Light(glm::vec3(1.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 1.0f), 1.0f); + Light light = Light(glm::vec3(-3.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(1.0f, 0.0f, 0.0f), 2.0f); lights.push_back(light); - Light light2 = Light(glm::vec3(0.0f, 0.0f, 1.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(1.0f, 0.0f, 0.0f), 1.0f); + Light light2 = Light(glm::vec3(3.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 1.0f), 2.0f); lights.push_back(light2); }