You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
387 B
26 lines
387 B
6 months ago
|
import { SpotLight } from 'three';
|
||
|
|
||
|
class IESSpotLight extends SpotLight {
|
||
|
|
||
|
constructor( color, intensity, distance, angle, penumbra, decay ) {
|
||
|
|
||
|
super( color, intensity, distance, angle, penumbra, decay );
|
||
|
|
||
|
this.iesMap = null;
|
||
|
|
||
|
}
|
||
|
|
||
|
copy( source, recursive ) {
|
||
|
|
||
|
super.copy( source, recursive );
|
||
|
|
||
|
this.iesMap = source.iesMap;
|
||
|
|
||
|
return this;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default IESSpotLight;
|