You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a texture with transparency, alphaTest can be used, but if using alphaToCoverage instead, shadows lack alpha. This is problematic for cases like grass billboards where the docs recommend to use alphaToCoverage, but don't explain how / what needs to be configured to get alpha on the shadow.
When writing to the shadow map, don't just consider alphaTest, but also alphaToCoverage.
Alternatives
Tried using MeshDepthMaterial, but have not been able to achieve any good result with map + alphaTest or alphaMap. However, using alphaHash is showing transparency in the shadow now so that is helpful.
Description
For a texture with transparency, alphaTest can be used, but if using alphaToCoverage instead, shadows lack alpha. This is problematic for cases like grass billboards where the docs recommend to use alphaToCoverage, but don't explain how / what needs to be configured to get alpha on the shadow.
Here's an example:
https://codesandbox.io/p/sandbox/exciting-water-hz8k92
Solution
When writing to the shadow map, don't just consider alphaTest, but also alphaToCoverage.
Alternatives
Tried using MeshDepthMaterial, but have not been able to achieve any good result with map + alphaTest or alphaMap. However, using alphaHash is showing transparency in the shadow now so that is helpful.
Additional context
No response
The text was updated successfully, but these errors were encountered: