Changed lighting parameters to make the scene more interesting.

This commit is contained in:
Faerbit 2014-11-04 00:46:49 +01:00
parent 0f64538d1e
commit ae949e814f

View File

@ -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);
}