0ad/source/simulation2
trompetin17 c3d3943047
Fix incorrect shadow behavior in VisualActors
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.
2025-06-03 19:30:10 -05:00
..
components Fix incorrect shadow behavior in VisualActors 2025-06-03 19:30:10 -05:00
docs Update trac links with gitea links 2024-12-10 11:29:48 +01:00
helpers Return by value from CCamera::GetScreenCoordinates 2024-11-17 20:27:58 +01:00
scripting Cache JS component wrappers 2025-04-19 14:41:45 +02:00
serialization Fix no-pch build following #7829 2025-05-11 11:24:50 +02:00
system Fix no-pch build following #7829 2025-05-11 11:24:50 +02:00
tests Fix a bunch of spelling mistakes 2025-04-11 06:24:32 +02:00
MessageTypes.h Store whether a player is activ in C++ 2025-01-05 19:57:12 +01:00
Simulation2.cpp Stop running shrinking gcs & simplify GC logic. 2025-04-22 17:03:29 +02:00
Simulation2.h Don't use std::shared_ptr<ScriptContext> in the CSimulation2 2024-03-08 17:15:25 +00:00
TypeList.h Store whether a player is activ in C++ 2025-01-05 19:57:12 +01:00