summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-04-25 10:59:00 -0700
committerGraham Linden <graham@lindenlab.com>2019-04-25 10:59:00 -0700
commit4ed05fc84fce0fbee76c583e91feed5aff2dbbfc (patch)
tree31bfec7a2b09919d9df3a050d2f2ed369d31f0ad /indra/newview/app_settings/shaders/class3/lighting/lightV.glsl
parentca16874379bf76dd844d57b2ee59da531d642a8e (diff)
Fix dark ALM and strangeness at Mid lighting (class 3 but with a darkness about it).
Make a distinct class3/lighting/lightV which boosts to WL levels (* 2.0) and make lighting without WL atmo enabled use class 2 or below. Make forward shaders (alpha and materialF with alpha-blend mode on) more consistent with deferred lighting.
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/lighting/lightV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class3/lighting/lightV.glsl5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl b/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl
index b19f4e96ca..efe7f69f21 100644
--- a/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl
+++ b/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl
@@ -28,10 +28,9 @@
// All lights, no specular highlights
vec4 sumLights(vec3 pos, vec3 norm, vec4 color, vec4 baseLight);
-vec3 atmosAmbient(vec3 c);
+
vec4 calcLighting(vec3 pos, vec3 norm, vec4 color, vec4 baseLight)
{
- vec4 l = sumLights(pos, norm, color, baseLight);
- return l;
+ return sumLights(pos, norm, color, baseLight) * 2.0f;
}