This node describes global environmental attributes such as ambient lighting, light attenuation, and fog.
Ambient lighting is the amount of extra light impinging on each surface point when the lighting
model is Phong (see
SoLightModel).
Light attenuation affects all subsequent lights in a scene (see
SoLight). It is a quadratic function of distance from a light source to a surface point. The three coefficients are specified
in the
attenuation field. Attenuation works only for light sources with a fixed location, such as point and spot lights.
Fog has one of four types, each of which blends each surface point with the specified fog
color. Each type interprets the
visibility field to be the distance at which fog totally obscures objects. A
visibility value of 0 (the default) causes the
SoEnvironment node to set up fog so that the visibility is the distance to the
far clipping plane of the current camera.
Note that this node has effect only during rendering, and that it does not inherit field values from other
SoEnvironment nodes.
SoSFFloat fogVisibility
Type of fog, color of fog, and visibility distance, which is the distance at which fog totally obscures objects.