SO3Engine
|
SO3SkyLight.cpp
Go to the documentation of this file.
39SSkyLight::SSkyLight(SEnvironment* parent, const std::string& skyLightName, const Ogre::ColourValue& defaultBaseColour) : SData(skyLightName)
51 ogreSkyLightSceneNode = ogreSceneManager->getRootSceneNode()->createChildSceneNode(skyLightName +"/Node");
176 return -(ogreSkyLight->getParentSceneNode()->_getDerivedOrientation() * Ogre::Vector3::NEGATIVE_UNIT_Z);
202const Ogre::Vector3 SSkyLight::MakeDirection(const Ogre::Degree& azimuth, const Ogre::Degree& altitude)
213 // Alpha is not managed by Hydrax, which only use a Ogre::Vector3 for rgb values, so do not care about alpha that will be less than 1 after those multiplications.
void AddColourFrame(const ColourFrame &colourFrame)
Definition SO3ColourGradient.h:72
const Ogre::ColourValue GetColour(const float &gradientPosition) const
Definition SO3ColourGradient.cpp:46
Definition SO3DataScol.h:41
Definition SO3Environment.h:47
SUniversalClock * GetUniversalClock()
Definition SO3Environment.cpp:237
Ogre::SceneManager * GetOgreScenePointer()
Definition SO3Scene.cpp:449
void SetLightColour(const Ogre::ColourValue &newColour)
Definition SO3SkyLight.cpp:195
void SetCastShadowEnable(const bool &enable)
Definition SO3SkyLight.cpp:228
const Ogre::Vector3 MakeDirection(const Ogre::Degree &azimuth, const Ogre::Degree &altitude)
Definition SO3SkyLight.cpp:202
Ogre::SceneNode * ogreSkyLightSceneNode
Definition SO3SkyLight.h:48
void UpdateShadowFarDistance(const float &distance)
Definition SO3SkyLight.cpp:233
void SetLightDirection(const Ogre::Vector3 &direction)
Definition SO3SkyLight.cpp:181
const Ogre::ColourValue GetLightColour(const float &level=1.0f) const
Definition SO3SkyLight.cpp:187
void UpdateShadowFarClipDistance(const float &distance)
Definition SO3SkyLight.cpp:238
const Ogre::Vector3 GetLightDirection() const
Definition SO3SkyLight.cpp:173
virtual const Ogre::Vector3 ComputeDirectionImpl(const double &julianDay)=0
Definition SO3DataScol.h:38
Generated by 1.9.8