summaryrefslogtreecommitdiffstats
path: root/src/entities/Entity.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-28 15:24:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-28 15:24:37 +0200
commit209b7891d10f93754540114de34b0e4734c26630 (patch)
tree3008aa7db2bca46434ed99f7165e31e19a9462b1 /src/entities/Entity.cpp
parentfix (diff)
parentrenamed 2dfx shadowRange to Size (diff)
downloadre3-209b7891d10f93754540114de34b0e4734c26630.tar
re3-209b7891d10f93754540114de34b0e4734c26630.tar.gz
re3-209b7891d10f93754540114de34b0e4734c26630.tar.bz2
re3-209b7891d10f93754540114de34b0e4734c26630.tar.lz
re3-209b7891d10f93754540114de34b0e4734c26630.tar.xz
re3-209b7891d10f93754540114de34b0e4734c26630.tar.zst
re3-209b7891d10f93754540114de34b0e4734c26630.zip
Diffstat (limited to '')
-rw-r--r--src/entities/Entity.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index a9b6b2b8..31da489f 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -803,12 +803,12 @@ CEntity::ProcessLightsForEntity(void)
}
// Light shadow
- if(effect->light.shadowRange != 0.0f){
+ if(effect->light.shadowSize != 0.0f){
if(lightOn){
CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_ADDITIVE,
effect->light.shadow, &pos,
- effect->light.shadowRange, 0.0f,
- 0.0f, -effect->light.shadowRange,
+ effect->light.shadowSize, 0.0f,
+ 0.0f, -effect->light.shadowSize,
128,
effect->col.r*CTimeCycle::GetSpriteBrightness()*effect->light.shadowIntensity/255.0f,
effect->col.g*CTimeCycle::GetSpriteBrightness()*effect->light.shadowIntensity/255.0f,
@@ -817,8 +817,8 @@ CEntity::ProcessLightsForEntity(void)
}else if(lightFlickering){
CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_ADDITIVE,
effect->light.shadow, &pos,
- effect->light.shadowRange, 0.0f,
- 0.0f, -effect->light.shadowRange,
+ effect->light.shadowSize, 0.0f,
+ 0.0f, -effect->light.shadowSize,
0, 0.0f, 0.0f, 0.0f,
15.0f, 1.0f, 40.0f, false, 0.0f);
}