FogExp2.js 382 字节
Newer Older
A
alteredq 已提交
1
/**
M
Mr.doob 已提交
2
 * @author mrdoob / http://mrdoob.com/
A
alteredq 已提交
3 4 5 6 7
 * @author alteredq / http://alteredqualia.com/
 */

THREE.FogExp2 = function ( hex, density ) {

A
alteredq 已提交
8
	this.name = '';
9
  
A
alteredq 已提交
10
	this.color = new THREE.Color( hex );
A
alteredq 已提交
11
	this.density = ( density !== undefined ) ? density : 0.00025;
A
alteredq 已提交
12 13

};
14 15 16 17 18 19

THREE.FogExp2.prototype.clone = function () {

	return new THREE.FogExp2( this.color.getHex(), this.density );

};