download
raw
703 Bytes
import { Light } from './Light.js';
import { DirectionalLightShadow } from './DirectionalLightShadow.js';
import { Object3D } from '../core/Object3D.js';
class DirectionalLight extends Light {
constructor( color, intensity ) {
super( color, intensity );
this.isDirectionalLight = true;
this.type = 'DirectionalLight';
this.position.copy( Object3D.DEFAULT_UP );
this.updateMatrix();
this.target = new Object3D();
this.shadow = new DirectionalLightShadow();
}
dispose() {
this.shadow.dispose();
}
copy( source ) {
super.copy( source );
this.target = source.target.clone();
this.shadow = source.shadow.clone();
return this;
}
}
export { DirectionalLight };

Xet Storage Details

Size:
703 Bytes
·
Xet hash:
a9585ff3bb322c8e54bbffb88c3a78f05a52c0f4cea3f39177400913bd91b366

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.