PointLight.js 385 字节
Newer Older
M
Mr.doob 已提交
1
/**
M
Mr.doob 已提交
2
 * @author mrdoob / http://mrdoob.com/
M
Mr.doob 已提交
3 4
 */

5
THREE.PointLight = function ( hex, intensity, distance ) {
M
Mr.doob 已提交
6 7 8

	THREE.Light.call( this, hex );

9 10 11
	this.position = new THREE.Vector3( 0, 0, 0 );
	this.intensity = ( intensity !== undefined ) ? intensity : 1;
	this.distance = ( distance !== undefined ) ? distance : 0;
M
Mr.doob 已提交
12 13 14

};

15
THREE.PointLight.prototype = Object.create( THREE.Light.prototype );