Skip to content
Snippets Groups Projects
Commit 5d5cb7a0 authored by David Parks's avatar David Parks
Browse files

Fix for broken shadows on rigged attachments when attachment penetrates shadow...

Fix for broken shadows on rigged attachments when attachment penetrates shadow frustum near clip plane.
parent 30b44b23
No related branches found
No related tags found
No related merge requests found
/** /**
* @file diffuseSkinnedV.glsl * @file attachmentShadowV.glsl
* *
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc. * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
* $License$ * $License$
...@@ -21,5 +21,7 @@ void main() ...@@ -21,5 +21,7 @@ void main()
gl_FrontColor = gl_Color; gl_FrontColor = gl_Color;
gl_Position = gl_ProjectionMatrix*vec4(pos, 1.0); vec4 p = gl_ProjectionMatrix * vec4(pos, 1.0);
p.z = max(p.z, -p.w+0.01);
gl_Position = p;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment