1 #ifndef OPENMW_MWRENDER_SKY_H
2 #define OPENMW_MWRENDER_SKY_H
16 class PositionAttitudeTransform;
31 class AtmosphereUpdater;
32 class AtmosphereNightUpdater;
39 class UnderwaterSwitchCallback;
113 void update(
float duration);
120 void setDate (
int day,
int month);
157 void listAssetsToPreload(std::vector<std::string>& models, std::vector<std::string>& textures);
241 #endif // GAME_RENDER_SKY_H
int getSecundaPhase() const
Definition: sky.cpp:1410
osg::ref_ptr< osg::Node > mCloudMesh2
Definition: sky.hpp:182
void setEnabled(bool enabled)
Definition: sky.cpp:1443
bool mCreated
Definition: sky.hpp:201
float mShadowBlend
Definition: sky.hpp:101
Phase mPhase
Definition: sky.hpp:100
osg::ref_ptr< osgParticle::ParticleSystem > mRainParticleSystem
Definition: sky.hpp:197
float mAmbientSoundVolume
Definition: sky.hpp:73
void setMoonColour(bool red)
change Secunda colour to red
Definition: sky.cpp:1453
osg::ref_ptr< UnderwaterSwitchCallback > mUnderwaterSwitch
Definition: sky.hpp:175
osg::ref_ptr< osg::Node > mCloudMesh
Definition: sky.hpp:181
std::auto_ptr< Sun > mSun
Definition: sky.hpp:192
void setRainSpeed(float speed)
float mCloudAnimationTimer
Definition: sky.hpp:208
osg::ref_ptr< osg::Group > mEarlyRenderBinRoot
Definition: sky.hpp:170
float mRainSpeed
Definition: sky.hpp:79
float mRainFrequency
Definition: sky.hpp:231
float mRainSpeed
Definition: sky.hpp:230
void setDate(int day, int month)
will be called even when sky is disabled.
Definition: sky.cpp:1664
Handles loading and caching of scenes, e.g. .nif files or .osg files.
Definition: scenemanager.hpp:37
float mWindSpeed
Definition: sky.hpp:232
float mNightFade
Definition: sky.hpp:68
std::string mNextClouds
Definition: sky.hpp:216
osg::ref_ptr< AtmosphereNightUpdater > mAtmosphereNightUpdater
Definition: sky.hpp:188
void update(float duration)
Definition: sky.cpp:1416
float mCloudBlendFactor
Definition: sky.hpp:45
float mRemainingTransitionTime
Definition: sky.hpp:226
std::string mNextCloudTexture
Definition: sky.hpp:44
osg::ref_ptr< CloudUpdater > mCloudUpdater2
Definition: sky.hpp:180
void sunEnable()
Definition: sky.cpp:1624
void setWaterHeight(float height)
Set height of water plane (used to remove underwater weather particles)
Definition: sky.cpp:1675
float mCloudSpeed
Definition: sky.hpp:63
std::string mClouds
Definition: sky.hpp:215
The SkyManager handles rendering of the sky domes, celestial bodies as well as other objects that nee...
Definition: sky.hpp:107
void setWeather(const WeatherResult &weather)
Definition: sky.cpp:1470
osg::Vec3f mStormDirection
Definition: sky.hpp:212
osg::Vec4f mFogColour
Definition: sky.hpp:222
osg::Vec4f mSunColor
Definition: sky.hpp:54
float mWindSpeed
Definition: sky.hpp:61
float mRainFrequency
Definition: sky.hpp:80
std::string mAmbientLoopSoundID
Definition: sky.hpp:72
std::string mRainEffect
Definition: sky.hpp:76
osg::Vec4f mSkyColour
Definition: sky.hpp:221
bool mNight
Definition: sky.hpp:67
osg::ref_ptr< osg::Group > mRootNode
Definition: sky.hpp:169
int mDay
Definition: sky.hpp:205
float mRainTimer
Definition: sky.hpp:210
void setStormDirection(const osg::Vec3f &direction)
Definition: sky.cpp:1638
int mMonth
Definition: sky.hpp:206
std::string mCloudTexture
Definition: sky.hpp:43
osg::Vec4f mCloudColour
Definition: sky.hpp:220
float mCloudSpeed
Definition: sky.hpp:218
float mMoonAlpha
Definition: sky.hpp:102
std::string mCurrentParticleEffect
Definition: sky.hpp:224
void updateRainParameters()
Definition: sky.cpp:1459
float mStarsOpacity
Definition: sky.hpp:219
void destroyRain()
Definition: sky.cpp:1383
bool mSunEnabled
Definition: sky.hpp:235
osg::ref_ptr< CloudUpdater > mCloudUpdater
Definition: sky.hpp:179
osg::ref_ptr< RainShooter > mRainShooter
Definition: sky.hpp:198
std::auto_ptr< Moon > mMasser
Definition: sky.hpp:193
osg::ref_ptr< osg::PositionAttitudeTransform > mAtmosphereNightNode
Definition: sky.hpp:186
Phase
Definition: sky.hpp:85
osg::ref_ptr< osg::PositionAttitudeTransform > mParticleNode
Definition: sky.hpp:172
osg::Vec4f mAmbientColor
Definition: sky.hpp:49
float mAtmosphereNightRoll
Definition: sky.hpp:187
~SkyManager()
Definition: sky.cpp:1395
void setSunDirection(const osg::Vec3f &direction)
Definition: sky.cpp:1643
SkyManager(osg::Group *parentNode, Resource::SceneManager *sceneManager)
Definition: sky.cpp:1092
float mCloudBlendFactor
Definition: sky.hpp:217
osg::Vec4f mSunDiscColor
Definition: sky.hpp:57
void setGlareTimeOfDayFade(float val)
Definition: sky.cpp:1670
osg::Vec4f mSkyColor
Definition: sky.hpp:51
std::vector< osg::ref_ptr< AlphaFader > > mParticleFaders
Definition: sky.hpp:174
std::string mParticleEffect
Definition: sky.hpp:75
float mFogDepth
Definition: sky.hpp:59
void listAssetsToPreload(std::vector< std::string > &models, std::vector< std::string > &textures)
Definition: sky.cpp:1680
bool mRainEnabled
Definition: sky.hpp:228
osg::ref_ptr< osg::Node > mParticleEffect
Definition: sky.hpp:173
std::auto_ptr< Moon > mSecunda
Definition: sky.hpp:194
osg::ref_ptr< AtmosphereUpdater > mAtmosphereUpdater
Definition: sky.hpp:190
osg::ref_ptr< osg::Node > mAtmosphereDay
Definition: sky.hpp:184
osg::ref_ptr< RainFader > mRainFader
Definition: sky.hpp:199
float mRotationFromNorth
Definition: sky.hpp:99
void setSecundaState(const MoonState &state)
Definition: sky.cpp:1657
bool mIsStorm
Definition: sky.hpp:203
osg::Vec4f mMoonScriptColor
Definition: sky.hpp:237
bool mEnabled
Definition: sky.hpp:234
float mGlareView
Definition: sky.hpp:65
void sunDisable()
Definition: sky.cpp:1631
osg::ref_ptr< osg::Group > mRainNode
Definition: sky.hpp:196
float mEffectFade
Definition: sky.hpp:77
void setHour(double hour)
will be called even when sky is disabled.
void setWaterEnabled(bool enabled)
Enable or disable the water plane (used to remove underwater weather particles)
Definition: sky.cpp:1720
void create()
no need to call this, automatically done on first enable()
Definition: sky.cpp:1135
bool mIsStorm
Definition: sky.hpp:70
std::string mRainEffect
Definition: sky.hpp:229
int getMasserPhase() const
Definition: sky.cpp:1404
osg::Vec4f mFogColor
Definition: sky.hpp:47
osg::ref_ptr< osg::PositionAttitudeTransform > mCloudNode
Definition: sky.hpp:177
void createRain()
Definition: sky.cpp:1322
float mRotationFromHorizon
Definition: sky.hpp:98
void setMasserState(const MoonState &state)
Definition: sky.cpp:1650
Resource::SceneManager * mSceneManager
Definition: sky.hpp:167