Skip to content

weird shadow geometry #394

Answered by asny
huand asked this question in Q&A
Aug 28, 2023 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

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?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@huand
Comment options

@huand
Comment options

@asny
Comment options

Answer selected by huand
@huand
Comment options

@asny
Comment options

@huand
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants