diff options
author | Dave Parks <davep@lindenlab.com> | 2013-05-31 12:53:58 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-05-31 12:53:58 -0500 |
commit | 08f9ef92399ab4abdc8652c48c85c1110b907e37 (patch) | |
tree | 80e5a67d54a28c6c45b457986d8077df15c425a5 /indra/newview/app_settings/shaders/class1 | |
parent | 9e1759423c82a006c5191d6795e70ddaae64e2ae (diff) |
NORSPEC-223 Fix for wrong textures displaying on fullbright+shiny faces with advanced lighting enabled.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyF.glsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyF.glsl b/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyF.glsl index b2bfd69f6e..f3d04a22f2 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/fullbrightShinyF.glsl @@ -46,11 +46,13 @@ vec3 fullbrightScaleSoftClip(vec3 light); void main() { -#ifdef diffuseLookup +#if HAS_DIFFUSE_LOOKUP vec4 color = diffuseLookup(vary_texcoord0.xy); #else vec4 color = texture2D(diffuseMap, vary_texcoord0.xy); #endif + + color.rgb *= vertex_color.rgb; vec3 envColor = textureCube(environmentMap, vary_texcoord1.xyz).rgb; |