We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432d58c commit 1f17097Copy full SHA for 1f17097
ContactShadowRenderer.js
@@ -277,6 +277,8 @@ void main() {
277
// At that screen space coordinate, what is the position of the object we see?
278
vec3 samplePos = worldFromScreen(offset);
279
280
+ if (samplePos.z > mix(uNear, uFar, 0.99)) continue;
281
+
282
// The amount of occlusion is proportional to the *cosine* of the angle between
283
// the line connecting the object to the surface and the surface normal. This is
284
// because light coming in at an angle is more spread out and thus delivers less
0 commit comments