From 7956c7b10b7a6c22245341e30248717dbc81821d Mon Sep 17 00:00:00 2001 From: samcake Date: Wed, 12 Oct 2016 09:57:06 -0700 Subject: [PATCH] Fixing a mistake introduced in previous commit in a shader --- libraries/render-utils/src/DeferredGlobalLight.slh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/render-utils/src/DeferredGlobalLight.slh b/libraries/render-utils/src/DeferredGlobalLight.slh index 9ccee8c43f..57ca33eaca 100755 --- a/libraries/render-utils/src/DeferredGlobalLight.slh +++ b/libraries/render-utils/src/DeferredGlobalLight.slh @@ -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); }