diff options
author | aap <aap@papnet.eu> | 2020-05-26 11:25:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 11:25:23 +0200 |
commit | 0b8f045d363dec9e9bf96d98995b339e12e04bd6 (patch) | |
tree | 86df5a8337edb1af67275219cef37d235aaebdf7 /src/entities/Entity.cpp | |
parent | fixed filename (diff) | |
parent | CVehicle (diff) | |
download | re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.gz re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.bz2 re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.lz re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.xz re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.zst re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.zip |
Diffstat (limited to 'src/entities/Entity.cpp')
-rw-r--r-- | src/entities/Entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp index a0c5c484..68486a3c 100644 --- a/src/entities/Entity.cpp +++ b/src/entities/Entity.cpp @@ -910,7 +910,7 @@ CEntity::ProcessLightsForEntity(void) camDir *= 2.0f/dist; glareDir += camDir; glareDir.Normalise(); - float camAngle = -DotProduct(glareDir, CTimeCycle::GetSunPosition()); + float camAngle = -DotProduct(glareDir, CTimeCycle::GetSunDirection()); if(camAngle > 0.0f){ float intens = Sqrt(camAngle) * CWeather::SunGlare; pos += camDir; |