Changed lighting parameters to make the scene more interesting.
This commit is contained in:
parent
0f64538d1e
commit
ae949e814f
4
level.cc
4
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user