summaryrefslogtreecommitdiffstats
path: root/src/extras/custompipes_d3d9.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-11 20:20:08 +0100
committeraap <aap@papnet.eu>2021-01-11 20:20:08 +0100
commit383142bcbeb39d7407bd88571c8a51823e9c6d71 (patch)
treea6698ded389d2a01cb7d1e1e3db9016ede92b3a7 /src/extras/custompipes_d3d9.cpp
parentMerge branch 'lcs-dev' into lcs (diff)
downloadre3-383142bcbeb39d7407bd88571c8a51823e9c6d71.tar
re3-383142bcbeb39d7407bd88571c8a51823e9c6d71.tar.gz
re3-383142bcbeb39d7407bd88571c8a51823e9c6d71.tar.bz2
re3-383142bcbeb39d7407bd88571c8a51823e9c6d71.tar.lz
re3-383142bcbeb39d7407bd88571c8a51823e9c6d71.tar.xz
re3-383142bcbeb39d7407bd88571c8a51823e9c6d71.tar.zst
re3-383142bcbeb39d7407bd88571c8a51823e9c6d71.zip
Diffstat (limited to 'src/extras/custompipes_d3d9.cpp')
-rw-r--r--src/extras/custompipes_d3d9.cpp3
1 files changed, 1 insertions, 2 deletions
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);