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/pointLightF.glsl | |
parent | ef7c661dc02458b5920ccbc11a565d8cae9b9de0 (diff) | |
parent | 5534078e9d371782148f08e40ca55bf0b52aa512 (diff) |
Merge vwr-dev-mat
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl')
-rwxr-xr-x | indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl index 36406cbf57..69cdb2ce71 100755 --- a/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl @@ -119,6 +119,8 @@ void main() vec4 spec = texture2DRect(specularRect, frag.xy); if (spec.a > 0.0) { + lit = min(da*6.0, 1.0) * dist_atten; + vec3 npos = -normalize(pos); vec3 h = normalize(lv+npos); float nh = dot(norm, h); |