import{GLTFLoader as l}from"./glTFLoader-f5CXkgzs.js";import{aG as p,aH as c}from"./index-T8LZyOXI.js";import"./index-BkylzejB.js";import"./bone-DGunMt7J.js";import"./skeleton-00tPGJ0X.js";import"./rawTexture-Duv-4ySK.js";import"./assetContainer-DNTqZfyb.js";import"./objectModelMapping-D1pI71RW.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};
