| 1 |
NAME SoLight SoLight "" { abstract base class for all light source nodes } |
| 2 |
|
| 3 |
INCLUDE nodes/SoLight.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
\cSoLight\. is the abstract base class for all light nodes. A light |
| 7 |
node defines an illumination source that may affect subsequent shapes |
| 8 |
in the scene graph, depending on the current lighting style. |
| 9 |
Light sources are affected by the current transformation. A light node |
| 10 |
under a separator does not affect any objects outside that separator. |
| 11 |
\p |
| 12 |
You can also use a node kit to create a light; see the reference page for |
| 13 |
\cSoLightKit\.. |
| 14 |
} |
| 15 |
|
| 16 |
FIELD on { |
| 17 |
Determines whether the source is active or inactive. When inactive, the |
| 18 |
source does not illuminate at all. |
| 19 |
} |
| 20 |
|
| 21 |
FIELD intensity { |
| 22 |
Illumination intensity of light source. Valid values range from 0.0 |
| 23 |
(no illumination) to 1.0 (maximum illumination). |
| 24 |
} |
| 25 |
|
| 26 |
FIELD color { Light source illumination color. } |
| 27 |
|
| 28 |
METHOD "" static SoType getClassTypeId() { |
| 29 |
Returns type identifier for this class. |
| 30 |
} |
| 31 |
|
| 32 |
ACTION SoGLRenderAction { |
| 33 |
Activates this light (if so specified) during traversal. All shape |
| 34 |
nodes that come after this light in the scene graph are illuminated by |
| 35 |
this light. |
| 36 |
} |
| 37 |
|
| 38 |
ALSO { |
| 39 |
SoDirectionalLight, SoEnvironment, |
| 40 |
SoLightKit, SoLightModel, SoMaterial, SoPointLight, |
| 41 |
SoSpotLight |
| 42 |
} |