SmallChange
1.0.0
A collection of extensions to Coin3D
|
The CoinEnvironment class is a node for specifying global rendering parameters. More...
#include <Inventor/nodes/CoinEnvironment.h>
Public Types | |
enum | FogType { NONE = SoEnvironmentElement::NONE , HAZE = SoEnvironmentElement::HAZE , FOG = SoEnvironmentElement::FOG , SMOKE = SoEnvironmentElement::SMOKE } |
Public Member Functions | |
CoinEnvironment (void) | |
virtual void | callback (SoCallbackAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
Static Public Member Functions | |
static void | initClass (void) |
Public Attributes | |
SoSFColor | ambientColor |
SoSFFloat | ambientIntensity |
SoSFVec3f | attenuation |
SoSFColor | fogColor |
SoSFFloat | fogStart |
SoSFEnum | fogType |
SoSFFloat | fogVisibility |
Protected Member Functions | |
virtual | ~CoinEnvironment () |
The CoinEnvironment class is a node for specifying global rendering parameters.
This node type provides the application programmer with the ability to set global parameters influencing lighting and fog. It is a temporary replacement of the standard SoEnvironment node, which didn't have a fogStart field.
Enumeration of available types of fog.
CoinEnvironment::CoinEnvironment | ( | void | ) |
Constructor.
|
protectedvirtual |
Destructor.
|
virtual |
Coin method. Updates state with the new environment values.
|
virtual |
Coin method. Updates state with new environment values.
SoSFColor CoinEnvironment::ambientColor |
The color of the global ambient light. Defaults to full intensity white.
SoSFFloat CoinEnvironment::ambientIntensity |
A global ambient value for the light intensity for the complete scene. This will provide some light even when there are no light sources defined for the scene.
Valid values is from 0.0 (no ambient light) to 1.0 (full ambient light intensity). Default value is 0.2.
SoSFVec3f CoinEnvironment::attenuation |
Light attenuation coefficients.
SoSFColor CoinEnvironment::fogColor |
Color of fog. Defaults to full intensity white.
SoSFFloat CoinEnvironment::fogStart |
The distance from the near plane from which objects will start to be obscured by fog. This field will only be used in linear (HAZE) mode.
Default value is 0.0.
SoSFEnum CoinEnvironment::fogType |
The fog model. See CoinEnvironment::FoType.
SoSFFloat CoinEnvironment::fogVisibility |
The "cut-off" distance from the camera where objects will be totally obscured by fog. If set to 0.0, the far plane distance will be used instead.
Default value is 0.0.