diff options
author | Dave Parks <davep@lindenlab.com> | 2013-05-31 00:17:07 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-05-31 00:17:07 -0500 |
commit | 9e1759423c82a006c5191d6795e70ddaae64e2ae (patch) | |
tree | 283e7b9b6fe56663b65aac0504b6791fa7a31fb3 /indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl | |
parent | 12307cd47305d26bb969e9c954f9ec1054b88735 (diff) | |
parent | 2cfd002a3be43698f1524a099c9298a63e635092 (diff) |
Automated merge with https://bitbucket.org/lindenlab/viewer-development-materials
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl')
-rwxr-xr-x | indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl b/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl index e130ef5d91..5740987ab1 100755 --- a/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl +++ b/indra/newview/app_settings/shaders/class1/lighting/lightFullbrightAlphaMaskF.glsl @@ -40,12 +40,15 @@ VARYING vec2 vary_texcoord0; void fullbright_lighting() { - vec4 color = diffuseLookup(vary_texcoord0.xy) * vertex_color; + vec4 color = diffuseLookup(vary_texcoord0.xy); if (color.a < minimum_alpha) { discard; } + + color.rgb *= vertex_color.rgb; + color.rgb = pow(color.rgb, vec3(texture_gamma)); color.rgb = fullbrightAtmosTransport(color.rgb); |