-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AlphaMode::Mask
keeps shadow on invisible objects
#4969
Comments
This was covered in another issue but I don’t remember which it was at the moment. |
I've checked 2 other issues which had to do with I guess the main difference is, if the whole object is masked away, there is no need to render it (or the shadow) whatsoever. |
How about creating a Pros: More control |
This should be fixed now that we're using prepass shaders for shadows. |
Problem
While
AlphaMode::Opaque
renders shadow as intended,AlphaMode::Blend
renders shadow in full opacity as intended,AlphaMode::Blend(f32)
still renders shadow on all objects, despite them only being fully opaque or fully transparent.Example
This is clearly visible in the
transparency_3d
example. (One of the spheres is masked away, yet still has a shadow)The text was updated successfully, but these errors were encountered: