From 383142bcbeb39d7407bd88571c8a51823e9c6d71 Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 11 Jan 2021 20:20:08 +0100 Subject: some useless code --- src/extras/custompipes_d3d9.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/extras/custompipes_d3d9.cpp') diff --git a/src/extras/custompipes_d3d9.cpp b/src/extras/custompipes_d3d9.cpp index 2ea2ede0..5217462c 100644 --- a/src/extras/custompipes_d3d9.cpp +++ b/src/extras/custompipes_d3d9.cpp @@ -128,8 +128,7 @@ leedsVehicleRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header) float coef = 0.0f; if(RpMatFXMaterialGetEffects(m) == rpMATFXEFFECTENVMAP) - coef = RpMatFXMaterialGetEnvMapCoefficient(m); - coef *= 0.5f; + coef = CClock::ms_EnvMapTimeMultiplicator * RpMatFXMaterialGetEnvMapCoefficient(m)*0.5f; if(bChromeCheat && coef > 0.0f) coef = 1.0f; d3ddevice->SetPixelShaderConstantF(PSLOC_shininess, (float*)&coef, 1); -- cgit v1.2.3