download
raw
462 Bytes
import { Color } from '../math/Color.js';
class Fog {
constructor( color, near = 1, far = 1000 ) {
this.isFog = true;
this.name = '';
this.color = new Color( color );
this.near = near;
this.far = far;
}
clone() {
return new Fog( this.color, this.near, this.far );
}
toJSON( /* meta */ ) {
return {
type: 'Fog',
name: this.name,
color: this.color.getHex(),
near: this.near,
far: this.far
};
}
}
export { Fog };

Xet Storage Details

Size:
462 Bytes
·
Xet hash:
17d4f99f06f8a3848a9e4f9dd6b5524a26b7662b3d8bf694c45ac1f0a3b6bfa9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.