AmbientLight adds a constant term to the amount of light reflected by each point on the surface of an object,
thereby increasing the brightness of the object uniformly.
AmbientLights are often used to represent the base amount of illumination in a scene. In the real world,
light gets reflected off of surfaces, causing areas that are not in direct line-of-sight of the light to be lit (more
dimly). Using a dark colored (weak) AmbientLight can achieve the effect of the lighting of those areas.
| Access | Constructor and Description |
|---|---|
| public | |
| public | AmbientLight(Color
the color of the light source color)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| private NGNode |
| AmbientLight | back to summary |
|---|---|
| public AmbientLight() Creates a new instance of | |
| AmbientLight | back to summary |
|---|---|
| public AmbientLight(Color color) Creates a new instance of
| |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |