By using a Fog node, a light haze or a thick, pea-soap fog can be produced. It is also possible to define a color for this fog effect.
-
Fog {
-
color 1 1 1 # exposedField SFColor
-
fogType "LINEAR" # exposedField SFString
-
visibilityRange 0 # exposedField SFFloat
-
set_bind # eventIn SFBool
-
isBound # eventOut SFBool
-
}
|
color specifies the RGB color of a fog.
|
visibilityRange specifies the maximum distance between viewer and the shapes in the world so that the shapes which are away from the viewer can not be seen by the viewer because of the fog effect.
|
fogType defines the interpolation of fog thickness with repect to the distance between shape and viewer. It can be LINEAR or EXPONENTIAL.
|