PointLight.js 280 B

1234567891011
  1. THREE.PointLight = function ( hex, intensity ) {
  2. THREE.Light.call( this, hex );
  3. this.position = new THREE.Vector3();
  4. this.intensity = intensity || 1;
  5. };
  6. THREE.DirectionalLight.prototype = new THREE.Light();
  7. THREE.DirectionalLight.prototype.constructor = THREE.PointLight;