Capítulo 655 de 859
This class can be used to define an exponential squared fog, which gives a clear view near the camera and a faster than exponentially densening fog farther from the camera.
const scene = new THREE.Scene();
scene.fog = new THREE.FogExp2( 0xcccccc, 0.002 );
Constructor
| Signature |
|---|
| `new FogExp2( color : number |
Properties
| Property | Description |
|---|---|
.color : Color | The fog's color. |
.density : number | Defines how fast the fog will grow dense. |
.isFogExp2 : boolean (readonly) | This flag can be used for type testing. |
.name : string | The name of the fog. |
Methods
| Method | Description |
|---|---|
.clone() : FogExp2 | Returns a new fog with copied values from this instance. |
| `.toJSON( meta : Object | string ) : Object` |