Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

feat(w3ddevice): settle the shadow darkness at 0.55, chosen over a base

Olcay Seygan47ea65ecb8f8
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Shadow/W3DVolumetricShadow.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Shadow/W3DVolumetricShadow.cpp
index 3deeb3042..bb83c37c1 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Shadow/W3DVolumetricShadow.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Shadow/W3DVolumetricShadow.cpp
@@ -109,7 +109,7 @@ const Real cosAngleToCare = cos ((0.2 * PI) / 180.0); //1.5 degree difference
// fully blocked pixel goes, and how far the filter reaches in texels. The first is the one that
// decides between a surface shadowing itself in stripes and a shadow lifting off its own caster.
#define SHADOW_MAP_DEPTH_BIAS 0.0015f
-#define SHADOW_MAP_STRENGTH 0.65f
+#define SHADOW_MAP_STRENGTH 0.55f
// How wide the filter may open and how narrow it stays on the ground, in texels of the map, and how
// much penumbra a unit of gap between a caster and what its shadow falls on is worth. The last is
// the number the whole picture turns on: a tank's tracks are on the ground and keep a hard edge, a