import{GLTFLoader as l}from"./glTFLoader-Bp7IfGPK.js";import{aG as p,aH as c}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 s="KHR_materials_ior";class t{constructor(r){this.name=s,this.order=180,this._loader=r,this.enabled=this._loader.isExtensionUsed(s)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,e,o){return l.LoadExtensionAsync(r,e,this.name,async(i,a)=>{const n=new Array;return n.push(this._loader.loadMaterialPropertiesAsync(r,e,o)),n.push(this._loadIorPropertiesAsync(i,a,o)),await Promise.all(n).then(()=>{})})}_loadIorPropertiesAsync(r,e,o){const i=this._loader._getOrCreateMaterialAdapter(o),a=e.ior!==void 0?e.ior:t._DEFAULT_IOR;return i.specularIor=a,Promise.resolve()}}t._DEFAULT_IOR=1.5;p(s);c(s,!0,d=>new t(d));export{t as KHR_materials_ior};
