0 votes

I have planets orbiting a star on a "followPath" in 3D space. The planets are AnimatedSprite3D with billboard=true.

Is there any way to mask Sprite3Ds or illuminate the sun facing side?

It seems shading and a lightsource in the center of the solarsystem do not work with billboard.

Thank you

in Engine by (17 points)
edited by

If you need planets to be illuminated by a sun in 3D, why use sprites? Spheres would work by design instead.
I don't see an easy way to do it with billboards, unless you write your own custom shader to do it, or switch to 2D and use the 2D lighting system.

Sounds like you need to dig out an old school technique; a phong shadermap

Ah memories... :)

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