|
@@ -2,14 +2,14 @@ import { Color } from '../math/Color.js';
|
|
|
|
|
|
class Fog {
|
|
|
|
|
|
- constructor( color, near, far ) {
|
|
|
+ constructor( color, near = 1, far = 1000 ) {
|
|
|
|
|
|
this.name = '';
|
|
|
|
|
|
this.color = new Color( color );
|
|
|
|
|
|
- this.near = ( near !== undefined ) ? near : 1;
|
|
|
- this.far = ( far !== undefined ) ? far : 1000;
|
|
|
+ this.near = near;
|
|
|
+ this.far = far;
|
|
|
|
|
|
}
|
|
|
|