从无法访问的项目Fork
体验新版 GitCode,发现更多精彩内容 >>
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/ */ THREE.FogExp2 = function ( hex, density ) {
this.name = '';
this.color = new THREE.Color( hex );
this.density = ( density !== undefined ) ? density : 0.00025;
};
THREE.FogExp2.prototype.clone = function () { return new THREE.FogExp2( this.color.getHex(), this.density ); };