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

Mask mode missing from Light2D #98790

Closed
aledraken opened this issue Nov 3, 2024 · 6 comments
Closed

Mask mode missing from Light2D #98790

aledraken opened this issue Nov 3, 2024 · 6 comments

Comments

@aledraken
Copy link

Tested versions

Reproducible in any 4.0 version

System information

Windows 10 - Godot 4.3

Issue description

Light2D nodes no longer have "mask" as one of their blend modes like they did in previous versions, making creating Line Of Sights/Field Of Views in 2D impossible. Some say to use CanvasItems/Groups but there is 0 documentation/tutorials about this subject so I'm not even sure if it's actually possible to get the same effect.

Steps to reproduce

Create a PointLight2D node
Try to change blend mode to mask
Notice that only add, substract and mix modes are available
Explode

Minimal reproduction project (MRP)

N/A

@AThousandShips
Copy link
Member

What functionality are you missing? In what way is this not possible in 4.x? Does this not work in this example?

@aledraken
Copy link
Author

What functionality are you missing? In what way is this not possible in 4.x? Does this not work in this example?

Hi, I'm trying to make a line of sight kinda like Darkwood/Zero sievert/Among Us, in the project you've sent they use a canvas material with light only, but that will show enemies and everything else also when they are not lit by the player, for example by any other light source.

Most of the workarounds I've found online and some I've created myself are too expensive and complicated for larger scenes and are generally too complex for an issue that didn't even exist in godot 3.

@AThousandShips
Copy link
Member

Have you tested the new Clip Children mode? This is intended to be the replacement as far as I can find, see:

For documenting the changes, please see:

If this is still not what you need, please open a proposal as this is for bugs, not missing features (even if they were removed)

Thank you for your report!

@AThousandShips AThousandShips closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2024
@aledraken
Copy link
Author

Have you tested the new Clip Children mode? This is intended to be the replacement as far as I can find, see:

For documenting the changes, please see:

If this is still not what you need, please open a proposal as this is for bugs, not missing features (even if they were removed)

Thank you for your report!

Yes, I've tried using clip children with subviewports but it's really heavy with larger scenes and kinda of a weird setup, I guess I'll open a proposal, thanks for your time.

@AThousandShips
Copy link
Member

Oh my bad you didn't mention clip children in your report so didn't know you had tried that

@aledraken
Copy link
Author

Oh my bad you didn't mention clip children in your report so didn't know you had tried that

Np, btw if you'd like to take a look at the way I implemented it I've added my project in the proposal godotengine/godot-proposals#11082

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

2 participants