Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Th0r | |
Old Version | Published before Godot 3 was released. |
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
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.
Zylann | 2017-04-04 12:47
Sounds like you need to dig out an old school technique; a phong shadermap
Ah memories…
guppy42 | 2017-04-04 16:49