summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl')
-rwxr-xr-xindra/newview/app_settings/shaders/class1/deferred/alphaV.glsl13
1 files changed, 4 insertions, 9 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl b/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl
index 77d02b36ff..9cc2eb0cf3 100755
--- a/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl
@@ -69,11 +69,8 @@ VARYING vec3 vary_ambient;
VARYING vec3 vary_directional;
VARYING vec3 vary_fragcoord;
VARYING vec3 vary_position;
-VARYING vec3 vary_pointlight_col;
+VARYING vec4 vary_pointlight_col;
-#ifdef USE_VERTEX_COLOR
-VARYING vec4 vertex_color;
-#endif
VARYING vec2 vary_texcoord0;
@@ -186,9 +183,9 @@ void main()
- vary_pointlight_col = diff;
+ vary_pointlight_col.rgb = diff;
+ vary_pointlight_col.a = vertex_color.a;
-
col.rgb = vec3(0,0,0);
// Add windlight lights
@@ -200,9 +197,7 @@ void main()
col.rgb = col.rgb*diff.rgb;
-#ifdef USE_VERTEX_COLOR
- vertex_color = col;
-#endif
+
#ifdef HAS_SKIN
vary_fragcoord.xyz = frag_pos.xyz + vec3(0,0,near_clip);