0ad/source/graphics/tests
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
..
test_Camera.h Return by value from CCamera::BuildCameraRay 2024-11-17 20:27:58 +01:00
test_Color.h Add missing headers to tests 2024-10-18 17:27:48 +02:00
test_LOSTexture.h Use vanilla cxxtest functionallity 2024-10-13 18:27:18 +02:00
test_MapGenerator.h Add CXeromycesEngine 2024-11-17 18:03:49 +01:00
test_MeshManager.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
test_Model.h Fix incorrect shadow behavior in VisualActors 2025-06-03 19:30:10 -05:00
test_ShaderManager.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
test_Terrain.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
test_TextureConverter.h Add missing headers to tests 2024-10-18 17:27:48 +02:00
test_TextureManager.h Add CXeromycesEngine 2024-11-17 18:03:49 +01:00