import{GLTFLoader as p}from"./glTFLoader-Bp7IfGPK.js";import{aG as l,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 o="MSFT_sRGBFactors";class u{constructor(r){this.name=o,this._loader=r,this.enabled=this._loader.isExtensionUsed(o)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,a,t){return p.LoadExtraAsync(r,a,this.name,async(m,n)=>{if(n){const e=this._loader._getOrCreateMaterialAdapter(t),c=this._loader.loadMaterialPropertiesAsync(r,a,t),i=t.getScene().getEngine().useExactSrgbConversions;return e.baseColorTexture||e.baseColor.toLinearSpaceToRef(e.baseColor,i),e.specularColorTexture||e.specularColor.toLinearSpaceToRef(e.specularColor,i),await c}})}}l(o);d(o,!0,s=>new u(s));export{u as MSFT_sRGBFactors};
