summaryrefslogtreecommitdiffstats
path: root/src/render/Coronas.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-26 11:25:23 +0200
committerGitHub <noreply@github.com>2020-05-26 11:25:23 +0200
commit0b8f045d363dec9e9bf96d98995b339e12e04bd6 (patch)
tree86df5a8337edb1af67275219cef37d235aaebdf7 /src/render/Coronas.cpp
parentfixed filename (diff)
parentCVehicle (diff)
downloadre3-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/render/Coronas.cpp')
-rw-r--r--src/render/Coronas.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Coronas.cpp b/src/render/Coronas.cpp
index 8e832ab1..efe486fe 100644
--- a/src/render/Coronas.cpp
+++ b/src/render/Coronas.cpp
@@ -509,18 +509,18 @@ CCoronas::DoSunAndMoon(void)
{
// yeah, moon is done somewhere else....
- CVector sunCoors = CTimeCycle::GetSunPosition();
+ CVector sunCoors = CTimeCycle::GetSunDirection();
sunCoors *= 150.0f;
sunCoors += TheCamera.GetPosition();
- if(CTimeCycle::GetSunPosition().z > -0.2f){
+ if(CTimeCycle::GetSunDirection().z > -0.2f){
float size = ((CGeneral::GetRandomNumber()&0xFF) * 0.005f + 10.0f) * CTimeCycle::GetSunSize();
RegisterCorona(SUN_CORE,
CTimeCycle::GetSunCoreRed(), CTimeCycle::GetSunCoreGreen(), CTimeCycle::GetSunCoreBlue(),
255, sunCoors, size,
999999.88f, TYPE_STAR, FLARE_NONE, REFLECTION_OFF, LOSCHECK_OFF, STREAK_OFF, 0.0f);
- if(CTimeCycle::GetSunPosition().z > 0.0f)
+ if(CTimeCycle::GetSunDirection().z > 0.0f)
RegisterCorona(SUN_CORONA,
CTimeCycle::GetSunCoronaRed(), CTimeCycle::GetSunCoronaGreen(), CTimeCycle::GetSunCoronaBlue(),
255, sunCoors, 25.0f * CTimeCycle::GetSunSize(),