| 1 |
NAME SoDirectionalLight SoDirLt "" { |
| 2 |
node representing a directional light source |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE nodes/SoDirectionalLight.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This node defines a directional light source that illuminates along |
| 9 |
rays parallel to a given 3-dimensional vector. |
| 10 |
} |
| 11 |
|
| 12 |
FIELD direction { Illumination direction vector. } |
| 13 |
|
| 14 |
METHOD "" SoDirectionalLight() { |
| 15 |
Creates a directional light source node with default settings. |
| 16 |
} |
| 17 |
|
| 18 |
METHOD "" static SoType getClassTypeId() { |
| 19 |
Returns type identifier for this class. |
| 20 |
} |
| 21 |
|
| 22 |
ACTION SoGLRenderAction { |
| 23 |
Activates this light (if so specified) during traversal. All shape |
| 24 |
nodes that come after this light in the scene graph are illuminated by |
| 25 |
this light. The light's direction is affected by the current |
| 26 |
transformation. |
| 27 |
} |
| 28 |
|
| 29 |
ALSO { SoPointLight, SoSpotLight } |