Public Member Functions
|Fog (Inst< SFSetBind > _set_bind=0, Inst< SFNode > _metadata=0, Inst< SFTime > _bindTime=0, Inst< SFBool > _isBound=0, Inst< SFColor > _color=0, Inst< SFString > _fogType=0, Inst< SFFloat > _visibilityRange=0)|
|virtual void||renderFog ()|
|Render the global fog with OpenGL. |
|virtual void||traverseSG (TraverseInfo &ti)|
|Traverse the scenegraph. |
Static Public Member Functions
|static Fog *||getActive ()|
|Convenience function to get the top of the Fog stack. |
Static Public Attributes
|The H3DNodeDatabase for this node. |
|The scaling factor from local to global space. |
The distances are calculated in the coordinate space of the Fog node. The visibilityRange specifies the distance in metres (in the local coordinate system) at which objects are totally obscured by the fog. Objects located outside the visibilityRange from the viewer are drawn with a constant colour of color. Objects very close to the viewer are blended very little with the fog color. A visibilityRange of 0.0 disables the Fog node. The visibilityRange is affected by the scaling transformations of the Fog node's parents; translations and rotations have no affect on visibilityRange.
The fogType field controls how much of the fog colour is blended with the object as a function of distance. If fogType is "LINEAR", the amount of blending is a linear function of the distance, resulting in a depth cueing effect. If fogType is "EXPONENTIAL," an exponential increase in blending is used, resulting in a more natural fog appearance.
|virtual void H3D::Fog::traverseSG||(||TraverseInfo &||ti||)||