Capítulo 172 de 859
A loader for the IES format.
The loaded texture should be assigned to IESSpotLight#map.
const loader = new IESLoader();
const texture = await loader.loadAsync( 'ies/007cfb11e343e2f42e3b476be4ab684e.ies' );
const spotLight = new THREE.IESSpotLight( 0xff0000, 500 );
spotLight.iesMap = texture;
Constructor
| Signature |
|---|
new IESLoader( manager : LoadingManager ) |
Properties
| Property | Description |
|---|---|
| `.type : HalfFloatType | FloatType` |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded IES texture to the onLoad() callback. |
.parse( text : string ) : DataTexture | Parses the given IES data. |