Skip to content
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

Closed
arabgamedev opened this issue Dec 20, 2022 · 7 comments
Closed

blend mode mask is missing in Light2D node #70358

arabgamedev opened this issue Dec 20, 2022 · 7 comments

Comments

@arabgamedev
Copy link

Godot version

4.0 beta 9

System information

windows 8.1 GLES3

Issue description

why mask mode is removed or missing in Light2D nodes
image

Steps to reproduce

add Light2D node
select blend mode

Minimal reproduction project

_

@Calinou
Copy link
Member

Calinou commented Dec 20, 2022

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.)

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2022
@arabgamedev
Copy link
Author

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
what i need is the shadows as mask like in 3.x

@arabgamedev
Copy link
Author

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.)

did you see the effect in among us when you can't see player behind the wall
you can do this effect in godot 3 using mask light2D

@Calinou
Copy link
Member

Calinou commented Dec 21, 2022

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.

@arabgamedev
Copy link
Author

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?

@PhilWun
Copy link

PhilWun commented Jan 26, 2023

@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:

@Wllwl2
Copy link

Wllwl2 commented Mar 6, 2023

@arabgamedev Я тоже скучаю по этой функции, потому что я хотел того же самого. Чтобы получить тот же эффект, вы можете написать шейдер для вычисления теней с помощью новых функций SDF и сделать текстуру прозрачной в тени. Это те ресурсы, которые я использовал:

Hi. I am another person with this problem. Can you please post how you worked it out here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants