PointLight.js 424 B

12345678910111213141516
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. */
  4. THREE.PointLight = function ( hex, intensity, distance ) {
  5. THREE.Light.call( this, hex );
  6. this.position = new THREE.Vector3( 0, 0, 0 );
  7. this.intensity = ( intensity !== undefined ) ? intensity : 1;
  8. this.distance = ( distance !== undefined ) ? distance : 0;
  9. };
  10. THREE.PointLight.prototype = new THREE.Light();
  11. THREE.PointLight.prototype.constructor = THREE.PointLight;
粤ICP备19079148号