diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-05-01 14:54:41 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-05-01 14:54:41 -0700 |
commit | e78184a58ca9ff27d76692892bbb5323b5686db9 (patch) | |
tree | 887d6d9739dae4d7ab2060351688da1f78725783 /indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl | |
parent | ef7c661dc02458b5920ccbc11a565d8cae9b9de0 (diff) | |
parent | 5534078e9d371782148f08e40ca55bf0b52aa512 (diff) |
Merge vwr-dev-mat
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl')
-rwxr-xr-x | indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl index 4ce9cd6b40..c918a42c73 100755 --- a/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl @@ -216,7 +216,7 @@ void main() vec4 plcol = texture2DLodDiffuse(projectionMap, proj_tc.xy, lod); dlit = color.rgb * plcol.rgb * plcol.a; - + col = dlit*lit*diff_tex; //amb_da += (da*0.5)*(1.0-shadow)*proj_ambiance; } @@ -234,6 +234,7 @@ void main() if (spec.a > 0.0) { + dlit *= min(da*6.0, 1.0) * dist_atten; vec3 npos = -normalize(pos); //vec3 ref = dot(pos+lv, norm); |