|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
24 #ifndef _SkyX_CloudsManager_H_
25 #define _SkyX_CloudsManager_H_
82 const Ogre::Real& _Scale,
83 const Ogre::Vector2& _WindDirection,
84 const Ogre::Real& _TimeMultiplier)
108 const Ogre::Real& _Scale,
109 const Ogre::Vector2& _WindDirection,
110 const Ogre::Real& _TimeMultiplier,
111 const Ogre::Real& _DistanceAttenuation,
112 const Ogre::Real& _DetailAttenuation,
113 const Ogre::Real& _HeightVolume,
114 const Ogre::Real& _VolumetricDisplacement)
Options(const Ogre::Real &_Height, const Ogre::Real &_Scale, const Ogre::Vector2 &_WindDirection, const Ogre::Real &_TimeMultiplier)
Constructor.
Ogre::Real Height
Cloud layer height.
void registerAll()
Register all.
ColorGradient mSunGradient
void setSunGradient(const ColorGradient &SunGradient)
Set sun gradient.
Ogre::Real DistanceAttenuation
Distance attenuation.
Options(const Ogre::Real &_Height, const Ogre::Real &_Scale, const Ogre::Vector2 &_WindDirection, const Ogre::Real &_TimeMultiplier, const Ogre::Real &_DistanceAttenuation, const Ogre::Real &_DetailAttenuation, const Ogre::Real &_HeightVolume, const Ogre::Real &_VolumetricDisplacement)
Constructor.
const Options & getOptions() const
Get options.
CloudLayer(SkyX *s)
Default onstructor.
Ogre::Real VolumetricDisplacement
Volumetric displacement(For volumetric effects on the gpu)
Ogre::Real Scale
Cloud layer scale.
SkyX * mSkyX
SkyX parent pointer.
void setAmbientGradient(const ColorGradient &AmbientGradient)
Set ambient gradient.
Ogre::Real TimeMultiplier
Time multiplier.
const ColorGradient & getSunGradient() const
Get sun color gradient.
const std::vector< CloudLayer * > & getCloudLayers() const
Get cloud layers.
void remove(CloudLayer *cl)
Remove the specified cloud layer.
const ColorGradient & getAmbientGradient() const
Get ambient color gradient.
void _unregister()
Unregister cloud pass.
Ogre::Pass * mCloudLayerPass
Cloud layer pass.
~CloudsManager()
Destructor.
void removeAll()
Remove all cloud layers.
std::vector< CloudLayer * >::iterator CloudLayersIt
Cloud layers iterator.
Ogre::Real DetailAttenuation
Detail attenuation.
CloudLayer * add(const CloudLayer::Options &o)
Add a cloud layer.
std::vector< CloudLayer * > mCloudLayers
Cloud layers std::vector.
Options mOptions
Cloud layer options.
Ogre::Vector2 WindDirection
Wind direction.
void unregisterAll()
Unregister all cloud layers.
Options()
Default constructor.
CloudsManager(SkyX *h)
Constructor.
void unregister(CloudLayer *cl)
Unregister cloud layer.
void update()
Update cloud layers.
ColorGradient mAmbientGradient
Ambient and Sun color gradients.
SkyX * mSkyX
SkyX parent pointer.
void _registerCloudLayer(Ogre::Pass *CloudLayerPass)
Register layer.
Ogre::Real HeightVolume
Cloud layer height volume(For volumetric effects on the gpu)
void _updateInternalPassParameters()
Update internal cloud pass parameters.
void _updatePassParameters()
Update cloud pass parameters.
void setOptions(const Options &o)
Set options.