-
Hi, below is a cast shadow The geometry is triangles with edges as cylinders. My question is why can we see the absence of shadows near the edge? Do i do something wrong, is there a trick I can do to avoid this, or nothing at all? thx! |
Beta Was this translation helpful? Give feedback.
Answered by
asny
Sep 1, 2023
Replies: 1 comment 6 replies
-
here is another view with better shadow res of the same issue: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The shadow map technique is quite performant and works well in most cases, that's why it's so common to use, but it has its limitations for sure. To understand its limitations, you need to understand the technique, see for example this explanation.
In essence, I think your problem is causes by the object that cast shadow and the object that receives shadow are closer than the threshold that we use to determine if there should be a shadow. Also, we need that threshold to be well above 0 to avoid numerical issues. Maybe if you generate a shadow map around a smaller target or at a different angle, it will not show?