1 | import { ColorRepresentation } from '../utils';
|
2 | import { Light } from './Light';
|
3 |
|
4 | /**
|
5 | * This light's color gets applied to all the objects in the scene globally.
|
6 | *
|
7 | * @source https://github.com/mrdoob/three.js/blob/master/src/lights/AmbientLight.js
|
8 | */
|
9 | export class AmbientLight extends Light {
|
10 | /**
|
11 | * This creates a Ambientlight with a color.
|
12 | * @param color Numeric value of the RGB component of the color or a Color instance.
|
13 | * @param [intensity=1]
|
14 | */
|
15 | constructor(color?: ColorRepresentation, intensity?: number);
|
16 |
|
17 | /**
|
18 | * @default 'AmbientLight'
|
19 | */
|
20 | type: string;
|
21 |
|
22 | readonly isAmbientLight: true;
|
23 | }
|