Capítulo 97 de 859
This light globally illuminates all objects in the scene equally.
It cannot be used to cast shadows as it does not have a direction.
const light = new THREE.AmbientLight( 0x404040 ); // soft white light
scene.add( light );
Constructor
| Signature |
|---|
| `new AmbientLight( color : number |
Properties
| Property | Description |
|---|---|
.isAmbientLight : boolean (readonly) | This flag can be used for type testing. |