+1 vote

I made a similar setup as the one in the demo "2D in 3D viewport" :

On the video, the red mice is a Sprite3D and the green one is a sprite 2D in another scene, shown in 3D via Viewport. (I made this setup as it allows to assign some shaders to the 2D sprites in the process : outline and color change)

But even though the shadow is shown in the editor (thanks to the Opaque Pre-pass), it is not there when running the game. (Godot 3.1 alpha 2)

Any idea why it disappears ? :/
Thanks !

in Engine by (246 points)

after more tweakings, it appears that only the SpotLight and the OmniLight are missing their shadow. The DirectionalLight doesn't have this problem...

1 Answer

+2 votes

I had a similar issue and fixed it by increasing the 'Size' parameter in the 'Shadow Atlas' section of the Viewport. Although for me, DirectionalLights were affected as well.

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