#include <X3DLightNode.h>
Inheritance diagram for H3D::X3DLightNode:

Public Member Functions | |
| X3DLightNode (Inst< SFNode > _metadata=0, Inst< SFFloat > _ambientIntensity=0, Inst< SFColor > _color=0, Inst< SFFloat > _intensity=0, Inst< SFBool > _on=0) | |
| Constructor. | |
| virtual void | enableGraphicsState () |
| Turn the light on. | |
| virtual void | disableGraphicsState () |
| Turn the light off. | |
Public Attributes | |
| auto_ptr< SFFloat > | ambientIntensity |
| Specifies the intensity of the ambient emission from the light. | |
| auto_ptr< SFColor > | color |
| The color field specifies the spectral colour properties of both the direct and ambient light emission as an RGB value. | |
| auto_ptr< SFFloat > | intensity |
| The intensity field specifies the brightness of the direct emission from the light. | |
| auto_ptr< SFBool > | on |
| The on field specifies whether the light is enabled or disabled. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
Protected Attributes | |
| GLuint | light_index |
| GLint | max_lights |
Static Protected Attributes | |
| static GLuint | global_light_index = 0 |
Any node used as a source of illumination is derived from X3DLightNode. All light sources contain an intensity, a color, and an ambientIntensity field. The intensity field specifies the brightness of the direct emission from the light, and the ambientIntensity specifies the intensity of the ambient emission from the light. Light intensity may range from 0.0 (no light emission) to 1.0 (full intensity). The color field specifies the spectral colour properties of both the direct and ambient light emission as an RGB value. The on field specifies whether the light is enabled or disabled. If the value is FALSE, then the light is disabled and will not affect any nodes in the scene. If the value is TRUE, then the light will affect other nodes.
|
|
Specifies the intensity of the ambient emission from the light.
Access type: inputOutput
|
|
|
The color field specifies the spectral colour properties of both the direct and ambient light emission as an RGB value.
Access type: inputOutput
|
|
|
The intensity field specifies the brightness of the direct emission from the light.
Access type: inputOutput
|
|
|
The on field specifies whether the light is enabled or disabled. If the value is FALSE, then the light is disabled and will not affect any nodes in the scene.
Access type: inputOutput
|
1.4.5