diff options
author | Dave Parks <davep@lindenlab.com> | 2011-09-29 19:32:56 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-09-29 19:32:56 -0500 |
commit | 7238714634e72dacc4b09c1c4ee98b16fb0c91fe (patch) | |
tree | 89500aeb877bcf5b3d00f0c96ec0f0321834de1e /indra/newview/app_settings/shaders/class1/windlight/atmosphericsHelpersV.glsl | |
parent | 973fefc8d9014f6389b4c3f9633ce398fdf5399e (diff) |
SH-2507 Potential fix for basic shaders causing objects to disappear with some drivers (prune shader tree of unused shaders while we're at it)
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/windlight/atmosphericsHelpersV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/windlight/atmosphericsHelpersV.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsHelpersV.glsl b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsHelpersV.glsl index ed0249330e..89b6a52909 100644 --- a/indra/newview/app_settings/shaders/class1/windlight/atmosphericsHelpersV.glsl +++ b/indra/newview/app_settings/shaders/class1/windlight/atmosphericsHelpersV.glsl @@ -23,7 +23,7 @@ * $/LicenseInfo$ */ -uniform vec3 light_diffuse[8]; +uniform vec4 sunlight_color; uniform vec4 light_ambient; vec3 atmosAmbient(vec3 light) @@ -33,12 +33,12 @@ vec3 atmosAmbient(vec3 light) vec3 atmosAffectDirectionalLight(float lightIntensity) { - return light_diffuse[0].rgb * lightIntensity; + return sunlight_color.rgb * lightIntensity; } vec3 atmosGetDiffuseSunlightColor() { - return light_diffuse[0].rgb; + return sunlight_color.rgb; } vec3 scaleDownLight(vec3 light) |