0 votes

Alright so I first tried 2D lightning with tilesets, I thought it was something wrong with my tiles so I made a new scene with just two sprites and a background, one sprite has the Light 2D node with the radial texture of light and the other one is a StaticBody2D with CollisionShape2D(and the sprite of course). I tried it with all these things, once I tried with just the sprite and no other nodes, tried switching from GLES3 to GLES2, shadows are ENABLED...and no one else seems to encounter this problem.

in Engine by (18 points)

Is the non-light node using a LightOccluder2d?

That was the problem, thank you!

1 Answer

0 votes

Do you have an light occluder on your sprite? Try adding an occluder in addition to your collisionshape.

by (14 points)
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.
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 webmaster@godotengine.org with your username.