diff options
author | Debi King (Dessie) <dessie@lindenlab.com> | 2011-06-21 11:47:58 -0400 |
---|---|---|
committer | Debi King (Dessie) <dessie@lindenlab.com> | 2011-06-21 11:47:58 -0400 |
commit | fcf2ed5901699edfbc04d59d1a0517f19692df1a (patch) | |
tree | 3960aa76222776cb2b2dcd12fe1872850fc59ad7 /indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl | |
parent | 3595216efbeb0210f6c5777fd85a589bbbb08e4c (diff) | |
parent | 4d77146b9016a4db37112e153e71c05c596f7fdc (diff) |
merged .hgtags & BuildParams
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl index 22ed9dcd40..5efa3200d4 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pointLightF.glsl @@ -5,7 +5,7 @@ * $/LicenseInfo$ */ - #version 120 + #extension GL_ARB_texture_rectangle : enable @@ -30,7 +30,7 @@ uniform vec4 viewport; vec4 getPosition(vec2 pos_screen) { - float depth = texture2DRect(depthMap, pos_screen.xy).a; + float depth = texture2DRect(depthMap, pos_screen.xy).r; vec2 sc = (pos_screen.xy-viewport.xy)*2.0; sc /= viewport.zw; sc -= vec2(1.0,1.0); |