Water rendering.
More...
#include <water.hpp>
MWRender::Water::Water |
( |
osg::Group * |
parent, |
|
|
osg::Group * |
sceneRoot, |
|
|
Resource::ResourceSystem * |
resourceSystem, |
|
|
osgUtil::IncrementalCompileOperation * |
ico, |
|
|
const Fallback::Map * |
fallback, |
|
|
const std::string & |
resourcePath |
|
) |
| |
MWRender::Water::~Water |
( |
| ) |
|
void MWRender::Water::addEmitter |
( |
const MWWorld::Ptr & |
ptr, |
|
|
float |
scale = 1.f , |
|
|
float |
force = 1.f |
|
) |
| |
adds an emitter, position will be tracked automatically using its scene node
void MWRender::Water::clearRipples |
( |
| ) |
|
void MWRender::Water::createShaderWaterStateSet |
( |
osg::Node * |
node, |
|
|
Reflection * |
reflection, |
|
|
Refraction * |
refraction |
|
) |
| |
|
private |
- Parameters
-
reflection | the reflection camera (required) |
refraction | the refraction camera (optional) |
void MWRender::Water::createSimpleWaterStateSet |
( |
osg::Node * |
node, |
|
|
float |
alpha |
|
) |
| |
|
private |
void MWRender::Water::emitRipple |
( |
const osg::Vec3f & |
pos | ) |
|
osg::Vec3f MWRender::Water::getSceneNodeCoordinates |
( |
int |
gridX, |
|
|
int |
gridY |
|
) |
| |
|
private |
bool MWRender::Water::isUnderwater |
( |
const osg::Vec3f & |
pos | ) |
const |
void MWRender::Water::listAssetsToPreload |
( |
std::vector< std::string > & |
textures | ) |
|
remove all emitters in this cell
void MWRender::Water::removeEmitter |
( |
const MWWorld::Ptr & |
ptr | ) |
|
void MWRender::Water::setEnabled |
( |
bool |
enabled | ) |
|
void MWRender::Water::setHeight |
( |
const float |
height | ) |
|
bool MWRender::Water::toggle |
( |
| ) |
|
void MWRender::Water::update |
( |
float |
dt | ) |
|
void MWRender::Water::updateVisible |
( |
| ) |
|
|
private |
void MWRender::Water::updateWaterMaterial |
( |
| ) |
|
|
private |
const int MWRender::Water::CELL_SIZE = 8192 |
|
staticprivate |
bool MWRender::Water::mEnabled |
|
private |
osg::ref_ptr<osgUtil::IncrementalCompileOperation> MWRender::Water::mIncrementalCompileOperation |
|
private |
osg::ref_ptr<osg::Group> MWRender::Water::mParent |
|
private |
osg::ref_ptr<Reflection> MWRender::Water::mReflection |
|
private |
osg::ref_ptr<Refraction> MWRender::Water::mRefraction |
|
private |
const std::string MWRender::Water::mResourcePath |
|
private |
osg::ref_ptr<osg::Group> MWRender::Water::mSceneRoot |
|
private |
bool MWRender::Water::mToggled |
|
private |
float MWRender::Water::mTop |
|
private |
osg::ref_ptr<osg::Geometry> MWRender::Water::mWaterGeom |
|
private |
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::Water::mWaterNode |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/water.hpp
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/water.cpp