0 votes

I'm trying to make a 2d game have a 3d effect using the shadows and so far I have a top down shooter game reminiscent of APE OUT, yet the effect is quickly lost if there's a long wall or a lot of space in between them.

So I tried taking some online shaders and hoping they would work for shadows, yet none do. Any ideas if it's possible or should I try to go another way with my idea?

in Engine by (110 points)

1 Answer

0 votes

Use Light 2d and Occluder 2d. No need for shaders.
1.Create a light 2d node, goto shadows- and enable it.
2.Add texture to light 2d(Gradient circle of light or whatever your preference)
3.Add occluder to your walls or tileset

and you're good to go

by (380 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.