| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /**
- * @author mrdoob / http://mrdoob.com/
- */
- THREE.LightShadow = function ( camera ) {
- this.camera = camera;
- this.bias = 0;
- this.radius = 1;
- this.mapSize = new THREE.Vector2( 512, 512 );
- this.map = null;
- this.matrix = null;
- };
- THREE.LightShadow.prototype = {
- constructor: THREE.LightShadow,
- copy: function ( source ) {
- this.camera = source.camera.clone();
- this.bias = source.bias;
- this.radius = source.radius;
- this.mapSize.copy( source.mapSize );
- return this;
- },
- clone: function () {
- return new this.constructor().copy( this );
- }
- };
|