0 votes

In my game, the player character is traveling around an isometric map that has windows.
Currently, I am using a Light2DAdd to have my player character cast shadows in my game. And I have a canvas modulate node that darkens the frame around the light that is emitting from the player character.
Is there a way that I can occlude the top of the window frame so the light looks like it is going through the window rather than going through the whole wall?

Image of character with Light2DAdd and walls occluding that light

Similar second image but from other side of the wall

Godot version 3.2.3
in Engine by (12 points)
edited by

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.