mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 22:29:24 +02:00
Fixing a mistake introduced in previous commit in a shader
This commit is contained in:
parent
5f9c713d44
commit
7956c7b10b
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ vec3 evalLightmappedColor(mat4 invViewMat, float shadowAttenuation, float obscur
|
|||
vec3 diffuseLight = lightAttenuation * lightmap;
|
||||
|
||||
// Ambient light is the lightmap when in shadow
|
||||
vec3 ambientLight = (1.0 - lightAttenuation) * lightmap * getLightAmbientIntensity(light);
|
||||
vec3 ambientLight = (1.0 - lightAttenuation) * lightmap * getLightAmbientIntensity(ambient);
|
||||
|
||||
return isLightmapEnabled() * obscurance * albedo * (diffuseLight + ambientLight);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue