Archive 17/01/2023.

Drawable shadow casting default

QBkGames

Just wondering why the cast shadow flag of the Drawable is false by default? I find that I have to add code to enable shadow casting all throughout my game project.
Wouldn’t the most common scenario be to have shadow casting enabled and require that you manually disable it for a few exceptional cases?

Modanung

Performance says no. :slight_smile:

It’s better to add shadow where you want it, than having to remove it where you don’t see it. When you don’t care about having shadows, they shouldn’t be there.
Admittedly this is something that made sigh a bit once in a while, but I do not think the default should be changed.

WangKai

You can have a loop to change the shadow casting logic. Maybe we can add an editor operator for it.