diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-07-24 19:30:09 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-07-24 19:30:09 +0200 |
commit | 0c0e564019af4dac66150b1bfa5c13219b9eb752 (patch) | |
tree | 6cb58eae0085a0a5a4abf5535e1d452ed497dd21 /src/entities | |
parent | shadows done (diff) | |
download | re3-0c0e564019af4dac66150b1bfa5c13219b9eb752.tar re3-0c0e564019af4dac66150b1bfa5c13219b9eb752.tar.gz re3-0c0e564019af4dac66150b1bfa5c13219b9eb752.tar.bz2 re3-0c0e564019af4dac66150b1bfa5c13219b9eb752.tar.lz re3-0c0e564019af4dac66150b1bfa5c13219b9eb752.tar.xz re3-0c0e564019af4dac66150b1bfa5c13219b9eb752.tar.zst re3-0c0e564019af4dac66150b1bfa5c13219b9eb752.zip |
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/Entity.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp index 10677bdf..0749e8e7 100644 --- a/src/entities/Entity.cpp +++ b/src/entities/Entity.cpp @@ -405,7 +405,7 @@ CEntity::PreRender(void) }else if(GetModelIndex() == MI_MISSILE){ CVector pos = GetPosition(); float flicker = (CGeneral::GetRandomNumber() & 0xF)/(float)0x10; - CShadows::StoreShadowToBeRendered(SHADOWTYPE_2, + CShadows::StoreShadowToBeRendered(SHADOWTYPE_ADDITIVE, gpShadowExplosionTex, &pos, 8.0f, 0.0f, 0.0f, -8.0f, 255, 200.0f*flicker, 160.0f*flicker, 120.0f*flicker, @@ -758,7 +758,7 @@ CEntity::ProcessLightsForEntity(void) // Light shadow if(effect->light.shadowRange != 0.0f){ if(lightOn){ - CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_2, + CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_ADDITIVE, effect->light.shadow, &pos, effect->light.shadowRange, 0.0f, 0.0f, -effect->light.shadowRange, @@ -768,7 +768,7 @@ CEntity::ProcessLightsForEntity(void) effect->col.b*CTimeCycle::GetSpriteBrightness()*effect->light.shadowIntensity/255.0f, 15.0f, 1.0f, 40.0f, false, 0.0f); }else if(lightFlickering){ - CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_2, + CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_ADDITIVE, effect->light.shadow, &pos, effect->light.shadowRange, 0.0f, 0.0f, -effect->light.shadowRange, |