summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/deferred/attachmentShadowV.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/deferred/attachmentShadowV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/attachmentShadowV.glsl6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/attachmentShadowV.glsl b/indra/newview/app_settings/shaders/class3/deferred/attachmentShadowV.glsl
index 3be9cb3de8..1a655e6467 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/attachmentShadowV.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/attachmentShadowV.glsl
@@ -42,10 +42,8 @@ void main()
pos = (mat*vec4(position.xyz, 1.0));
pos = projection_matrix * vec4(pos.xyz, 1.0);
-#if !DEPTH_CLAMP
+#if !defined(DEPTH_CLAMP)
pos.z = max(pos.z, -pos.w+0.01);
- gl_Position = pos;
-#else
- gl_Position = pos;
#endif
+ gl_Position = pos;
}