mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Setting the defalt at a better time of the day
This commit is contained in:
parent
96d5a2ab42
commit
e3b3c8e1ef
1 changed files with 6 additions and 3 deletions
|
@ -136,8 +136,8 @@ SunSkyStage::SunSkyStage() :
|
|||
|
||||
// Default origin location is a special place in the world...
|
||||
setOriginLocation(122.407f, 37.777f, 0.03f);
|
||||
// 6pm
|
||||
setDayTime(18.0f);
|
||||
// Noun
|
||||
setDayTime(12.0f);
|
||||
// Begining of march
|
||||
setYearTime(60.0f);
|
||||
}
|
||||
|
@ -185,7 +185,10 @@ void SunSkyStage::updateGraphicsObject() const {
|
|||
_earthSunModel.setSunLatitude(evalSunDeclinaison(_yearTime));
|
||||
|
||||
Vec3d sunLightDir = -_earthSunModel.getSurfaceSunDir();
|
||||
|
||||
_sunLight->setDirection(Vec3(sunLightDir.x, sunLightDir.y, sunLightDir.z));
|
||||
|
||||
double originAlt = _earthSunModel.getAltitude();
|
||||
_sunLight->setPosition(Vec3(0.0f, originAlt, 0.0f));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue