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.

fix(ww3d2): keep the fire look out of the sdl3 programs

Olcay Seygan8defc2e69bae
diff --git a/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/ffshader.cpp b/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/ffshader.cpp
index 868d6a403..60bc7a365 100644
--- a/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/ffshader.cpp
+++ b/GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/ffshader.cpp
@@ -245,6 +245,8 @@ bool CombinerShader_Generate(const CombinerDescription & description, CombinerSh
CombinerDescription supported = description;
// Scene-depth fading and cosmetic refraction still have separate SDL integration work.
supported.SoftParticle = SOFT_PARTICLE_NONE;
+ // The fire look's coordinates come out of the Direct3D 11 vertex half, which SDL does not run.
+ supported.FireLook = FIRE_LOOK_NONE;
if (supported.DrawEffect != DRAW_EFFECT_CLOAK_SHADOW) supported.DrawEffect = DRAW_EFFECT_NONE;
return generate_combiners(supported, target, hlsl, true)
&& SDL3_Shader_Retarget(hlsl, false);