Caelum
0.6.4
|
Compositor-based precipitation controller. More...
#include <DepthComposer.h>
Public Types | |
typedef std::map< Ogre::Viewport *, DepthComposerInstance * > | ViewportInstanceMap |
Public Member Functions | |
DepthComposer (Ogre::SceneManager *sceneMgr) | |
void | update () |
DepthComposerInstance * | createViewportInstance (Ogre::Viewport *viewport) |
void | destroyViewportInstance (Ogre::Viewport *viewport) |
DepthComposerInstance * | getViewportInstance (Ogre::Viewport *viewport) |
void | destroyAllViewportInstances () |
void | setDebugDepthRender (bool value) |
Enables drawing the depth buffer. | |
bool | getDebugDepthRender () const |
void | setSkyDomeHazeEnabled (bool value) |
Enables skydome haze. | |
bool | getSkyDomeHazeEnabled () const |
void | setSunDirection (const Ogre::Vector3 &value) |
const Ogre::Vector3 | getSunDirection () const |
void | setHazeColour (const Ogre::ColourValue &value) |
const Ogre::ColourValue | getHazeColour () const |
void | setGroundFogEnabled (bool value) |
Enables exponential ground fog. | |
bool | getGroundFogEnabled () const |
void | setGroundFogDensity (Real value) |
Sets ground fog density. | |
Real | getGroundFogDensity () const |
Get ground fog density. | |
void | setGroundFogBaseLevel (Real value) |
Sets ground fog level At ground level fogginess is equal to GroundFogDensity. | |
Real | getGroundFogBaseLevel () const |
Get ground fog density. | |
void | setGroundFogVerticalDecay (Real value) |
Sets ground fog vertical decay. | |
Real | getGroundFogVerticalDecay () const |
Get ground fog density. | |
void | setGroundFogColour (const Ogre::ColourValue &value) |
Sets ground fog colour. | |
const Ogre::ColourValue | getGroundFogColour () const |
Get ground fog colour. | |
Public Attributes | |
ViewportInstanceMap | mViewportInstanceMap |
Protected Member Functions | |
Ogre::SceneManager * | getSceneManager () const |
Friends | |
class | DepthComposerInstance |
Compositor-based precipitation controller.
This class will add and control precipitation controllers to viewports.
Compositors clone the composing materials. This controller will register itself as a compositor listener and change the material in notifyMaterialSetup.