Add ambient light from point lights
This commit is contained in:
1 parent
135b075aa1
commit
331056c206
3 files changed
+15
-6
No files matched your search
@@ -91,6 +91,8 @@ void Shader::UpdatePointLights(PointLightList pointLights) {
|
||||
|
||||
glUniform1f(glGetUniformLocation(id, Util::ShaderArrayName("pointLights", i, "radius").c_str()), pointLights[i]->GetRadius());
|
||||
glUniform1f(glGetUniformLocation(id, Util::ShaderArrayName("pointLights", i, "ambient").c_str()), pointLights[i]->GetAmbient());
|
||||
glUniform1f(glGetUniformLocation(id, Util::ShaderArrayName("pointLights", i, "diffuse").c_str()), pointLights[i]->GetDiffuse());
|
||||
glUniform1f(glGetUniformLocation(id, Util::ShaderArrayName("pointLights", i, "specular").c_str()), pointLights[i]->GetSpecular());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user