LightShadow.js 576 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.LightShadow = function ( camera ) {
  5. this.camera = camera;
  6. this.bias = 0;
  7. this.radius = 1;
  8. this.mapSize = new THREE.Vector2( 512, 512 );
  9. this.map = null;
  10. this.matrix = null;
  11. };
  12. THREE.LightShadow.prototype = {
  13. constructor: THREE.LightShadow,
  14. copy: function ( source ) {
  15. this.camera = source.camera.clone();
  16. this.bias = source.bias;
  17. this.radius = source.radius;
  18. this.mapSize.copy( source.mapSize );
  19. return this;
  20. },
  21. clone: function () {
  22. return new this.constructor().copy( this );
  23. }
  24. };
粤ICP备19079148号