PointLight.js 280 字节
Newer Older
M
Mr.doob 已提交
1 2 3 4
THREE.PointLight = function ( hex, intensity ) {

	THREE.Light.call( this, hex );

5
	this.position = new THREE.Vector3();
M
Mr.doob 已提交
6 7 8 9 10 11
	this.intensity = intensity || 1;

};

THREE.DirectionalLight.prototype = new THREE.Light();
THREE.DirectionalLight.prototype.constructor = THREE.PointLight;