/** * @author mrdoob / http://mrdoob.com/ */ THREE.PointLight = function ( hex, intensity, distance ) { THREE.Light.call( this, hex ); this.intensity = ( intensity !== undefined ) ? intensity : 1; this.distance = ( distance !== undefined ) ? distance : 0; }; THREE.PointLight.prototype = Object.create( THREE.Light.prototype ); THREE.PointLight.prototype.clone = function () { var light = new THREE.PointLight(); THREE.Light.prototype.clone.call( this, light ); light.intensity = this.intensity; light.distance = this.distance; return light; };