import{GLTFLoader as p}from"./glTFLoader-Bp7IfGPK.js";import{aG as d,aH as m}from"./index-CDrXokXW.js";import"./index-DWyDLubb.js";import"./bone-z620UXj2.js";import"./skeleton-3aE04lM6.js";import"./rawTexture-DYLCXHMF.js";import"./assetContainer-D7EiOqw6.js";import"./objectModelMapping-CGWnurZP.js";const t="KHR_materials_dispersion";class l{constructor(s){this.name=t,this.order=174,this._loader=s,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(s,r,e){return p.LoadExtensionAsync(s,r,this.name,async(i,o)=>{const n=new Array;return n.push(this._loader.loadMaterialPropertiesAsync(s,r,e)),n.push(this._loadDispersionPropertiesAsync(i,r,e,o)),await Promise.all(n).then(()=>{})})}_loadDispersionPropertiesAsync(s,r,e,i){const o=this._loader._getOrCreateMaterialAdapter(e);return o.transmissionWeight>0||!i.dispersion||(o.transmissionDispersionAbbeNumber=20/i.dispersion),Promise.resolve()}}d(t);m(t,!0,a=>new l(a));export{l as KHR_materials_dispersion};
