1 |
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
-
}
|
2 |
color specifies the RGB color of a fog.
|
3 |
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.
|
4 |
fogType defines the interpolation of fog thickness with repect to the distance between shape and viewer. It can be LINEAR or EXPONENTIAL.
|