mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
This commit primarily corrects an inaccurate comment and resolves a hidden bug in the VisualActor shadow logic, while preserving the current behavior. Previously, the DisableShadows option removed both casting and receiving shadows. However, the internal logic ignored this setting in some cases, causing shadows to appear even when explicitly disabled in XML templates. This change introduces the ability to control CastShadows and ReceiveShadows independently via template settings, defaulting both to true unless explicitly specified. In addition, previews are updated to receive shadows but not cast them, improving visual volume effects without affecting lighting behavior. |
||
|---|---|---|
| .. | ||
| components | ||
| docs | ||
| helpers | ||
| scripting | ||
| serialization | ||
| system | ||
| tests | ||
| MessageTypes.h | ||
| Simulation2.cpp | ||
| Simulation2.h | ||
| TypeList.h | ||