![]() |
VR-Forces Developer's Guide
|
State component that injects Fog rendering capabilities into a state set.

Public Member Functions | |
| DtOsgFogComponent (DtDe &de) | |
| virtual | ~DtOsgFogComponent () |
| virtual bool | install (osg::StateSet *stateset) |
| virtual bool | uninstall (osg::StateSet *stateset) |
| virtual bool | installed (void) const |
| virtual void | setColor (const Vector4_32 &fogColor, const osg::Camera *osgCamera) |
| virtual void | setDensity (float fDensity, const osg::Camera *osgCamera) |
| virtual void | setHeightFogPlane (const Vector4_32 &fogPlane, const osg::Camera *osgCamera) |
| virtual void | setHeightFogParams (const Vector4_32 &fogParams, const osg::Camera *osgCamera) |
| virtual void | setHeightFogColor (const Vector4_32 &color, const osg::Camera *osgCamera) |
| virtual Vector4_32 | color (const osg::Camera *osgCamera) const |
| virtual float | density (const osg::Camera *osgCamera) const |
| virtual void | setCameraDepth (float depth, const osg::Camera *osgCamera) |
| virtual float | cameraDepth (const osg::Camera *osgCamera) const |
Public Member Functions inherited from makVrv::DtOsgStateComponent | |
| DtOsgStateComponent (DtDe &de) | |
Protected Member Functions | |
| DtLightingComponentShaderConstants * | findShaderConstants (const osg::Camera *osgCamera) |
| const DtLightingComponentShaderConstants * | findShaderConstants (const osg::Camera *osgCamera) const |
Protected Member Functions inherited from makVrv::DtOsgStateComponent | |
| virtual | ~DtOsgStateComponent () |
| virtual const std::string & | loadShaderSource (const std::string &strFileName) const |
Protected Attributes | |
| bool | myInstalled |
| DtOsgLightManager & | myOsgLightManager |
Protected Attributes inherited from makVrv::DtOsgStateComponent | |
| DtDe & | myDe |
| DtOsgShaderFilesCache & | myShaderFilesCache |
Private Member Functions | |
| DtOsgFogComponent (const DtOsgFogComponent &other) | |
| DtOsgFogComponent & | operator= (const DtOsgFogComponent &other) |
| makVrv::DtOsgFogComponent::DtOsgFogComponent | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Install this component on a state set.
Implements makVrv::DtOsgStateComponent.
|
virtual |
Uninstall this component from a state set.
Implements makVrv::DtOsgStateComponent.
|
virtual |
Returns true if the component is installed on a state set.
|
virtual |
Sets the visibility fog color.
| fogColor | The visibility fog color. |
|
virtual |
Sets the visibility fog density.
| fDensity | The visibility fog density. |
|
virtual |
Sets the height fog plane.
| fogPlane | The plane equation in view space. |
|
virtual |
Sets the height fog parameters.
| fogParams | The height fog paramters x = camera distance to height fog plane y = height fog density z = unused w = height fog enable |
|
virtual |
Sets the height fog color.
| color | The height fog color. |
|
virtual |
Gets the visibility fog color.
|
virtual |
Gets the visibility fog density.
|
virtual |
Set/Get the depth of the camera below the ocean surface.
|
virtual |
Set/Get the depth of the camera below the ocean surface.
|
protected |
internal helper
|
protected |
internal helper
|
protected |
|
protected |