DirectionalLight.js 470 B

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