39SMoon::SMoon(
SEnvironment* parent,
const std::string& moonName) :
SSkyLight(parent, moonName,
Ogre::ColourValue(0.155, 0.155, 0.155))
42 moonTextureName =
"SkyX_Moon.png";
66 return GetMoonDirection(julianDay);
69const Ogre::Vector3 SMoon::GetMoonDirection(
const double& jday)
71 Ogre::Degree azimuth, altitude;
82 return moonTextureName;
87 moonTextureName = newTextureName;
static void GetHorizontalMoonPosition(const double &jday, const double &longitude, const double &latitude, double &azimuth, double &altitude)
static void GetMoonPhase(const double &jday, float &moonPhase)
Ogre::Degree GetLatitude()
Ogre::Degree GetLongitude()
void SetTextureName(const std::string &newTextureName)
std::string GetTextureName()
virtual const Ogre::Vector3 ComputeDirectionImpl(const double &julianDay)
const Ogre::Real GetPhase()
void SetCastShadowEnable(const bool &enable)
SEnvironment * parentEnvironment
const Ogre::Vector3 MakeDirection(const Ogre::Degree &azimuth, const Ogre::Degree &altitude)