1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

restored moons like they were

This commit is contained in:
scrawl 2012-04-06 19:21:28 +02:00
parent c0f991ac0a
commit f008ca166b

View file

@ -606,13 +606,13 @@ void WeatherManager::update(float duration)
float moonHeight = 1-std::abs((night-0.5)*2);
int facing = (mHour > 0.f && mHour<12.f) ? 1 : -1;
Vector3 masser(
-(1-moonHeight)*facing,
-(1-moonHeight)*facing,
(1-moonHeight)*facing,
(1-moonHeight)*facing,
moonHeight);
Vector3 secunda(
-(1-moonHeight)*facing*0.8,
-(1-moonHeight)*facing*1.25,
(1-moonHeight)*facing*0.8,
(1-moonHeight)*facing*1.25,
moonHeight);
mRendering->getSkyManager()->setMasserDirection(masser);