OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
MWRender::FudgeCallback Class Reference
Inheritance diagram for MWRender::FudgeCallback:
Collaboration diagram for MWRender::FudgeCallback:

Public Member Functions

virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 

Detailed Description

Moves water mesh away from the camera slightly if the camera gets too close on the Z axis. The offset works around graphics artifacts that occurred with the GL_DEPTH_CLAMP when the camera gets extremely close to the mesh (seen on NVIDIA at least). Must be added as a Cull callback.

Member Function Documentation

virtual void MWRender::FudgeCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
inlinevirtual

The documentation for this class was generated from the following file: