diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-04-30 13:57:30 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-04-30 13:57:30 -0700 |
commit | 536a30d7f2083d39dbd6d06f16fa53064c3ee379 (patch) | |
tree | 1b5d98081f42db4b5aa2eb7ca1e12fa9406c50f7 /indra/newview/app_settings/shaders/class2 | |
parent | d659b29f6ca180cac774e4576bba9da791510633 (diff) | |
parent | b06ec66a5d11628905da256e084d0036f39ba529 (diff) |
Merge vwr-dev-mat again
Diffstat (limited to 'indra/newview/app_settings/shaders/class2')
-rwxr-xr-x | indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl index 13b629a6c8..d2e85ba8a0 100755 --- a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl @@ -91,6 +91,7 @@ vec3 calcPointLightOrSpotLight(vec3 v, vec3 n, vec4 lp, vec3 ln, float la, float //distance attenuation float dist2 = d/la; da = clamp(1.0-(dist2-1.0*(1.0-fa))/fa, 0.0, 1.0); + da = pow(da, 2.2) * 2.2; // spotlight coefficient. float spot = max(dot(-ln, lv), is_pointlight); |