Closed jwwalker closed 2 months ago
I can reproduce the bug under Windows with both the Vulkan and Direct3D render systems.
Further experimentation shows that if you have an opaque mesh casting a shadow on a translucent object, it looks OK. Whereas if a translucent object casts a shadow, it may cast a shadow on itself as well as on something else.
Fixed!
Thanks for the report!
System Information
Detailed description
When using a point light and an object that uses transparent mode, you see shadows where you shouldn't.
To reproduce, start with the ShadowMapFromCode sample, but add the line
and replace this method:
In this modified version, I have turned off all the lights except one point light, whose position I have moved, and I have called
setTransparency
on the cubes.Here's a screen shot. Given that the light is to the left of the cubes, there is no reason that the front left cube should have shadows on it. And if you comment out the
setTransparency
line, it won't.