DirectionalLight.js 350 B

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