![]() |
VR-Forces 4.6 Class Documentation
|
State component that injects Fog rendering capabilities into a state set. More...

Public Member Functions | |
| DtOsgFogComponent (DtDe &de) | |
| CTOR. | |
| virtual bool | install (osg::StateSet *stateset) |
| Install this component on a state set. | |
| virtual bool | uninstall (osg::StateSet *stateset) |
| Uninstall this component from a state set. | |
| void | setColor (const osg::Vec4f &fogColor) |
| void | setDensity (float fDensity) |
| osg::Vec4f | color (void) const |
| float | density (void) const |
Public Member Functions inherited from makVrv::DtOsgStateComponent | |
| DtOsgStateComponent (DtDe &de, const DtOsgStateComponentContext *context=0L) | |
| CTOR. | |
| const DtOsgStateComponentContext * | getContext () const |
| Gets the context under which this component operates. | |
Protected Member Functions | |
| virtual | ~DtOsgFogComponent () |
| DTOR. | |
Protected Member Functions inherited from makVrv::DtOsgStateComponent | |
| virtual | ~DtOsgStateComponent () |
| DTOR. | |
| std::string | loadShaderSource (const std::string &strFileName) const |
| Loads shader source code from a path. | |
Protected Attributes | |
| osg::ref_ptr< osg::Uniform > | myFogColor |
| osg::ref_ptr< osg::Uniform > | myFogDensity |
State component that injects Fog rendering capabilities into a state set.
| makVrv::DtOsgFogComponent::DtOsgFogComponent | ( | DtDe & | de | ) |
CTOR.
|
protectedvirtual |
DTOR.
|
virtual |
Install this component on a state set.
Implements makVrv::DtOsgStateComponent.
|
virtual |
Uninstall this component from a state set.
Implements makVrv::DtOsgStateComponent.
| void makVrv::DtOsgFogComponent::setColor | ( | const osg::Vec4f & | fogColor | ) |
| void makVrv::DtOsgFogComponent::setDensity | ( | float | fDensity | ) |
| osg::Vec4f makVrv::DtOsgFogComponent::color | ( | void | ) | const |
| float makVrv::DtOsgFogComponent::density | ( | void | ) | const |
|
protected |
|
protected |