.new FogModule(paramsopt, typeopt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
params |
Object
|
<optional> |
{color: 0xefd1b5, density: 0.020, near: 10, far: 1000}
|
The parameters object. |
type |
String
|
<optional> |
exp2
|
The type of fog - exp2 or linear |
Example
How to create and apply a FogModule
const fogModule = new FogModule({
color: 0xffffff,
density: 0.03,
near: 20,
far: 200
}, 'exp2');
new App([
...,
fogModule
]);