-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
blend mode mask is missing in Light2D node #70358
Comments
This is expected. The Mask Light2D mode is replaced by the CanvasItem Clip Children property, which makes clipping more convenient to perform. (The CanvasGroup node may also be relevant to your needs, depending on what you need to achieve.) |
but if i want mask like 2d shadows i can't do it using just clip children |
did you see the effect in among us when you can't see player behind the wall |
This kind of culling should be done server-side to prevent cheats from revealing player positions. |
what is the harm of bring back this blend mode? |
@arabgamedev I also miss this feature, because I wanted to the same thing. To get the same effect you can write a shader to calculate the shadows with the new SDF functions and make the texture transparent in the shadow. These are the resources I used: |
Hi. I am another person with this problem. Can you please post how you worked it out here? |
Godot version
4.0 beta 9
System information
windows 8.1 GLES3
Issue description
why mask mode is removed or missing in Light2D nodes

Steps to reproduce
add Light2D node
select blend mode
Minimal reproduction project
_
The text was updated successfully, but these errors were encountered: