1 #ifndef OPENMW_MWRENDER_SKY_H
2 #define OPENMW_MWRENDER_SKY_H
11 #include <osg/Uniform>
23 class PositionAttitudeTransform;
38 class AtmosphereUpdater;
39 class AtmosphereNightUpdater;
46 class UnderwaterSwitchCallback;
123 void update(
float duration);
130 void setDate (
int day,
int month);
171 void listAssetsToPreload(std::vector<std::string>& models, std::vector<std::string>& textures);
264 #endif // GAME_RENDER_SKY_H
int getSecundaPhase() const
Definition: sky.cpp:1544
osg::ref_ptr< osg::Node > mCloudMesh2
Definition: sky.hpp:203
void setEnabled(bool enabled)
Definition: sky.cpp:1602
bool mCreated
Definition: sky.hpp:222
float mShadowBlend
Definition: sky.hpp:111
Phase mPhase
Definition: sky.hpp:110
osg::ref_ptr< osgParticle::ParticleSystem > mRainParticleSystem
Definition: sky.hpp:218
float mAmbientSoundVolume
Definition: sky.hpp:83
void setMoonColour(bool red)
change Secunda colour to red
Definition: sky.cpp:1612
osg::ref_ptr< UnderwaterSwitchCallback > mUnderwaterSwitch
Definition: sky.hpp:196
osg::ref_ptr< osg::Node > mCloudMesh
Definition: sky.hpp:202
void setRainSpeed(float speed)
float mCloudAnimationTimer
Definition: sky.hpp:229
osg::ref_ptr< osg::Group > mEarlyRenderBinRoot
Definition: sky.hpp:191
float mRainSpeed
Definition: sky.hpp:89
float mRainFrequency
Definition: sky.hpp:252
float mRainSpeed
Definition: sky.hpp:251
void setDate(int day, int month)
will be called even when sky is disabled.
Definition: sky.cpp:1843
Handles loading and caching of scenes, e.g. .nif files or .osg files.
Definition: scenemanager.hpp:44
float mWindSpeed
Definition: sky.hpp:253
float mNightFade
Definition: sky.hpp:78
std::string mNextClouds
Definition: sky.hpp:237
osg::ref_ptr< AtmosphereNightUpdater > mAtmosphereNightUpdater
Definition: sky.hpp:209
void update(float duration)
Definition: sky.cpp:1560
float mCloudBlendFactor
Definition: sky.hpp:52
float mRemainingTransitionTime
Definition: sky.hpp:247
std::string mNextCloudTexture
Definition: sky.hpp:51
osg::ref_ptr< CloudUpdater > mCloudUpdater2
Definition: sky.hpp:201
void sunEnable()
Definition: sky.cpp:1803
bool hasRain()
Definition: sky.cpp:1555
void setWaterHeight(float height)
Set height of water plane (used to remove underwater weather particles)
Definition: sky.cpp:1854
float mCloudSpeed
Definition: sky.hpp:73
std::string mClouds
Definition: sky.hpp:236
The SkyManager handles rendering of the sky domes, celestial bodies as well as other objects that nee...
Definition: sky.hpp:117
void setWeather(const WeatherResult &weather)
Definition: sky.cpp:1629
osg::Vec3f mStormDirection
Definition: sky.hpp:233
osg::Vec4f mFogColour
Definition: sky.hpp:243
osg::Vec4f mSunColor
Definition: sky.hpp:61
float mWindSpeed
Definition: sky.hpp:71
float mRainFrequency
Definition: sky.hpp:90
std::string mAmbientLoopSoundID
Definition: sky.hpp:82
std::string mRainEffect
Definition: sky.hpp:86
float mWeatherAlpha
Definition: sky.hpp:258
osg::Vec4f mSkyColour
Definition: sky.hpp:242
bool mNight
Definition: sky.hpp:77
osg::ref_ptr< osg::Group > mRootNode
Definition: sky.hpp:190
float mDLFogOffset
Definition: sky.hpp:69
int mDay
Definition: sky.hpp:226
float mRainTimer
Definition: sky.hpp:231
void setStormDirection(const osg::Vec3f &direction)
Definition: sky.cpp:1817
int mMonth
Definition: sky.hpp:227
std::string mCloudTexture
Definition: sky.hpp:50
osg::Vec4f mCloudColour
Definition: sky.hpp:241
void setCamera(osg::Camera *camera)
Definition: sky.cpp:1368
float mCloudSpeed
Definition: sky.hpp:239
float mMoonAlpha
Definition: sky.hpp:112
std::string mCurrentParticleEffect
Definition: sky.hpp:245
void updateRainParameters()
Definition: sky.cpp:1618
float mStarsOpacity
Definition: sky.hpp:240
void destroyRain()
Definition: sky.cpp:1517
bool mSunEnabled
Definition: sky.hpp:256
osg::ref_ptr< CloudUpdater > mCloudUpdater
Definition: sky.hpp:200
osg::ref_ptr< RainShooter > mRainShooter
Definition: sky.hpp:219
osg::ref_ptr< osg::PositionAttitudeTransform > mAtmosphereNightNode
Definition: sky.hpp:207
Phase
Definition: sky.hpp:95
osg::ref_ptr< osg::PositionAttitudeTransform > mParticleNode
Definition: sky.hpp:193
osg::Vec4f mAmbientColor
Definition: sky.hpp:56
std::unique_ptr< Moon > mSecunda
Definition: sky.hpp:215
float mAtmosphereNightRoll
Definition: sky.hpp:208
~SkyManager()
Definition: sky.cpp:1529
void setSunDirection(const osg::Vec3f &direction)
Definition: sky.cpp:1822
std::unique_ptr< Moon > mMasser
Definition: sky.hpp:214
SkyManager(osg::Group *parentNode, Resource::SceneManager *sceneManager)
Definition: sky.cpp:1096
float mCloudBlendFactor
Definition: sky.hpp:238
osg::Vec4f mSunDiscColor
Definition: sky.hpp:64
void setGlareTimeOfDayFade(float val)
Definition: sky.cpp:1849
void setRainIntensityUniform(osg::Uniform *uniform)
Definition: sky.cpp:1143
osg::Vec4f mSkyColor
Definition: sky.hpp:58
float mDLFogFactor
Definition: sky.hpp:68
std::vector< osg::ref_ptr< AlphaFader > > mParticleFaders
Definition: sky.hpp:195
std::string mParticleEffect
Definition: sky.hpp:85
float mFogDepth
Definition: sky.hpp:66
void listAssetsToPreload(std::vector< std::string > &models, std::vector< std::string > &textures)
Definition: sky.cpp:1859
bool mRainEnabled
Definition: sky.hpp:249
osg::ref_ptr< osg::Node > mParticleEffect
Definition: sky.hpp:194
osg::ref_ptr< AtmosphereUpdater > mAtmosphereUpdater
Definition: sky.hpp:211
osg::ref_ptr< osg::Node > mAtmosphereDay
Definition: sky.hpp:205
osg::ref_ptr< RainFader > mRainFader
Definition: sky.hpp:220
float mRotationFromNorth
Definition: sky.hpp:109
void setSecundaState(const MoonState &state)
Definition: sky.cpp:1836
bool mIsStorm
Definition: sky.hpp:224
std::unique_ptr< Sun > mSun
Definition: sky.hpp:213
osg::Vec4f mMoonScriptColor
Definition: sky.hpp:260
osg::Camera * mCamera
Definition: sky.hpp:187
bool mEnabled
Definition: sky.hpp:255
float mGlareView
Definition: sky.hpp:75
osg::Uniform * mRainIntensityUniform
Definition: sky.hpp:188
void sunDisable()
Definition: sky.cpp:1810
osg::ref_ptr< osg::Group > mRainNode
Definition: sky.hpp:217
float mEffectFade
Definition: sky.hpp:87
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:1899
void create()
no need to call this, automatically done on first enable()
Definition: sky.cpp:1148
bool mIsStorm
Definition: sky.hpp:80
std::string mRainEffect
Definition: sky.hpp:250
int getMasserPhase() const
Definition: sky.cpp:1538
osg::Vec4f mFogColor
Definition: sky.hpp:54
osg::ref_ptr< osg::PositionAttitudeTransform > mCloudNode
Definition: sky.hpp:198
void createRain()
Definition: sky.cpp:1449
float mRotationFromHorizon
Definition: sky.hpp:108
void setMasserState(const MoonState &state)
Definition: sky.cpp:1829
Resource::SceneManager * mSceneManager
Definition: sky.hpp:185
bool isEnabled()
Definition: sky.cpp:1550