| 123456789101112131415161718192021222324252627 |
- /**
- * @author mrdoob / http://mrdoob.com/
- */
- THREE.PointLight = function ( color, intensity, distance ) {
- THREE.Light.call( this, color );
- 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;
- };
|