Hides the node subgraph if the eye point is below water.
More...
Hides the node subgraph if the eye point is below water.
- Note
- Must be added as cull callback.
-
Meant to be used on a node that is child of a CameraRelativeTransform. The current eye point must be retrieved by the CameraRelativeTransform since we can't get it anymore once we are in camera-relative space.
virtual void MWRender::UnderwaterSwitchCallback::operator() |
( |
osg::Node * |
node, |
|
|
osg::NodeVisitor * |
nv |
|
) |
| |
|
inlinevirtual |
void MWRender::UnderwaterSwitchCallback::setEnabled |
( |
bool |
enabled | ) |
|
|
inline |
void MWRender::UnderwaterSwitchCallback::setWaterLevel |
( |
float |
waterLevel | ) |
|
|
inline |
bool MWRender::UnderwaterSwitchCallback::mEnabled |
|
private |
float MWRender::UnderwaterSwitchCallback::mWaterLevel |
|
private |
The documentation for this class was generated from the following file:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwrender/sky.cpp