0 votes

Hi there!

So I'll get straight to the point. I have a Light2D on my player character, and a LightOccluder2D on my wall tile. Currently, the shadows being cast from a wall tile are overlapping onto the wall sprites next to it. Is there any way to prevent this, or to make the shadow pass under the sprite, perhaps?

LightOccluder2D settings:
Closed: True
Cull Mode: Clockwise

Picture of problem:
https://ibb.co/LR6vJn2

Picture of what I'm trying to achieve:
https://ibb.co/1JvW8Hb

I've tried changing the Z-Index of the wall sprite (trying to get the shadow to pass under the sprite), to no avail. Maybe I'm doing something wrong though?

Any and all help would be appreciated!

Many thanks,
- Dan

asked Apr 7, 2019 in Engine by Krydan (12 points)

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 How to use this Q&A? before posting your first questions.