0 votes

Is it possible to setup system of lights 2D so that one light is set in mask mode and other lights in add/mix... mode without other lights intefering with shadow of litght in mask mode? In other words, is it possible to use one light (including its shadows) simply as mask and other lights as lights for lighting scene with color and shadows? I can't work this out. Other light always add to light in mask mode even if I put lights on the different layer.


in Engine by (244 points)

Masks (mode) have some issues, but you can try changing the light item masks and node's light masks.

I'm not sure that I understand your suggestion. I need all lights to cast shadows from the same group of objects, but one light to mask entire screen including all other lights without them intefering with mask - to show only obects/light/shadows in the region of that light, otherwise to render default clear color.

You want one light to act as a field-of-view mask, right? It can be done but it's a bit tricky. Check this question:

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.