SoEnvironment¶
-
InventorModule
¶ genre InventorNodesAutomatic
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def
Purpose¶
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.
Parameter Fields¶
Field Index¶
Ambient Color : Color |
Ambient Intensity : Float |
Attenuation : Vector3 |
Fog Color : Color |
Fog Type : Enum |
Fog Visibility : Float |
Visible Fields¶
Ambient Intensity¶
-
name:
ambientIntensity
, type:
Float
, default:
0.2
¶ Intensity of ambient lighting (for Phong lighting).
Ambient Color¶
-
name:
ambientColor
, type:
Color
, default:
1 1 1
¶ RGB color of ambient lighting (for Phong lighting).
Attenuation¶
-
name:
attenuation
, type:
Vector3
, default:
0 0 1
¶ Squared, linear, and constant light attenuation coefficients (in that order) with respect to distance of light from surface (for Phong lighting).