File size: 423 Bytes
2b7aae2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Color } from '../math/Color.js';

class FogExp2 {
	constructor(color, density = 0.00025) {
		this.name = '';

		this.color = new Color(color);
		this.density = density;
	}

	clone() {
		return new FogExp2(this.color, this.density);
	}

	toJSON(/* meta */) {
		return {
			type: 'FogExp2',
			color: this.color.getHex(),
			density: this.density,
		};
	}
}

FogExp2.prototype.isFogExp2 = true;

export { FogExp2 };