summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/lighting
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-04-08 10:34:59 -0700
committerGraham Linden <graham@lindenlab.com>2019-04-08 10:34:59 -0700
commit282f91aaf38cd108ee96475e351623ae203c57a6 (patch)
treee1fc9616c7ce204d906dc9de9ed1a256361cc448 /indra/newview/app_settings/shaders/class1/lighting
parentfe589170d3faa5ca681baca7b9a664e2d851cd6e (diff)
Make ambient clamping consistent between class1/2 deferred lighting and forward rendering.
Add decls for intermediate lighting values for debug.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/lighting')
-rw-r--r--indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl b/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl
index 7d699a4967..4d7cff37c6 100644
--- a/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl
+++ b/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl
@@ -34,7 +34,7 @@ vec3 scaleDownLight(vec3 light);
vec4 sumLights(vec3 pos, vec3 norm, vec4 color, vec4 baseLight)
{
- vec4 col;
+ vec4 col = vec4(0);
col.a = color.a;
col.rgb = light_diffuse[1].rgb * calcDirectionalLight(norm, light_position[1].xyz);