forked from mirror/openmw-tes3mp
restored moons like they were
This commit is contained in:
parent
c0f991ac0a
commit
f008ca166b
1 changed files with 4 additions and 4 deletions
|
@ -606,13 +606,13 @@ void WeatherManager::update(float duration)
|
||||||
float moonHeight = 1-std::abs((night-0.5)*2);
|
float moonHeight = 1-std::abs((night-0.5)*2);
|
||||||
int facing = (mHour > 0.f && mHour<12.f) ? 1 : -1;
|
int facing = (mHour > 0.f && mHour<12.f) ? 1 : -1;
|
||||||
Vector3 masser(
|
Vector3 masser(
|
||||||
-(1-moonHeight)*facing,
|
(1-moonHeight)*facing,
|
||||||
-(1-moonHeight)*facing,
|
(1-moonHeight)*facing,
|
||||||
moonHeight);
|
moonHeight);
|
||||||
|
|
||||||
Vector3 secunda(
|
Vector3 secunda(
|
||||||
-(1-moonHeight)*facing*0.8,
|
(1-moonHeight)*facing*0.8,
|
||||||
-(1-moonHeight)*facing*1.25,
|
(1-moonHeight)*facing*1.25,
|
||||||
moonHeight);
|
moonHeight);
|
||||||
|
|
||||||
mRendering->getSkyManager()->setMasserDirection(masser);
|
mRendering->getSkyManager()->setMasserDirection(masser);
|
||||||
|
|
Loading…
Reference in a new issue