Capítulo 528 de 859
This class represents a scene with a uniform color that can be used as input for PMREMGenerator#fromScene. The resulting PMREM represents uniform ambient lighting and can be used for Image Based Lighting by assigning it to Scene#environment.
const environment = new ColorEnvironment( 0x00ff00 );
const pmremGenerator = new THREE.PMREMGenerator( renderer );
const envMap = pmremGenerator.fromScene( environment ).texture;
scene.environment = envMap;
Constructor
| Signature |
|---|
| `new ColorEnvironment( color : number |
Methods
| Method | Description |
|---|---|
.dispose() | Frees internal resources. This method should be called when the environment is no longer required. |