Files
apt-nl-map/static/Magic4/js/three.js-dev/src/scenes/FogExp2.js
2024-12-04 10:21:04 +08:00

35 lines
438 B
JavaScript

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 };