mirror of
				https://github.com/jiawanlong/Cesium-Examples.git
				synced 2025-11-04 09:14:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			387 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			387 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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;
 |