mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Merge pull request #14340 from Nex-Pro/patch-5
Change to English spelling of 'declination'
This commit is contained in:
commit
87730884ab
1 changed files with 4 additions and 4 deletions
|
@ -223,8 +223,8 @@ void SunSkyStage::setSunDirection(const Vec3& direction) {
|
|||
}
|
||||
}
|
||||
|
||||
// THe sun declinaison calculus is taken from https://en.wikipedia.org/wiki/Position_of_the_Sun
|
||||
double evalSunDeclinaison(double dayNumber) {
|
||||
// The sun declination calculus is taken from https://en.wikipedia.org/wiki/Position_of_the_Sun
|
||||
double evalSunDeclination(double dayNumber) {
|
||||
return -(23.0 + 44.0/60.0)*cos(glm::radians((360.0/365.0)*(dayNumber + 10.0)));
|
||||
}
|
||||
|
||||
|
@ -235,8 +235,8 @@ void SunSkyStage::updateGraphicsObject() const {
|
|||
float sunLongitude = _earthSunModel.getLongitude() + (MAX_LONGITUDE * signedNormalizedDayTime);
|
||||
_earthSunModel.setSunLongitude(sunLongitude);
|
||||
|
||||
// And update the sunLAtitude as the declinaison depending of the time of the year
|
||||
_earthSunModel.setSunLatitude(evalSunDeclinaison(_yearTime));
|
||||
// And update the sunLatitude as the declination depending of the time of the year
|
||||
_earthSunModel.setSunLatitude(evalSunDeclination(_yearTime));
|
||||
|
||||
if (isSunModelEnabled()) {
|
||||
Vec3d sunLightDir = -_earthSunModel.getSurfaceSunDir();
|
||||
|
|
Loading…
Reference in a new issue