diff options
author | Dave Parks <davep@lindenlab.com> | 2012-05-07 15:06:52 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-05-07 15:06:52 -0500 |
commit | 42d69bdf53a4243fa34a5da21a36f4a19bd1ed62 (patch) | |
tree | f0317353b3217991e2783b843568040b013f5a70 /indra | |
parent | 68ec4d8355326f7c42c8e6fbabe774df6e5f41dd (diff) | |
parent | e75d889ea142486aed61e5a8d7ebd7f7c494cc91 (diff) |
merge
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl index 75de47614c..bff87cb6aa 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl @@ -55,8 +55,6 @@ uniform float far_clip; uniform vec3 proj_origin; //origin of projection to be used for angular attenuation uniform float sun_wash; -uniform int proj_shadow_idx; -uniform float shadow_fade; uniform vec3 center; uniform vec3 color; @@ -143,7 +141,8 @@ void main() discard; } - vec3 norm = texture2DRect(normalMap, frag.xy).xyz*2.0-1.0; + vec3 norm = texture2DRect(normalMap, frag.xy).xyz; + norm = vec3((norm.xy-0.5)*2.0, norm.z); norm = normalize(norm); float l_dist = -dot(lv, proj_n); |