import{GLTFLoader as n}from"./glTFLoader-Bp7IfGPK.js";import{aG as m,aH as d}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_emissive_strength";class l{constructor(e){this.name=t,this.order=170,this._loader=e,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,i){return n.LoadExtensionAsync(e,s,this.name,async(r,a)=>(await this._loader.loadMaterialPropertiesAsync(e,s,i),this._loadEmissiveProperties(r,a,i),await Promise.resolve()))}_loadEmissiveProperties(e,s,i){if(s.emissiveStrength!==void 0){const r=this._loader._getOrCreateMaterialAdapter(i);r.emissionLuminance=s.emissiveStrength}}}m(t);d(t,!0,o=>new l(o));export{l as KHR_materials_emissive_strength};
