import{GLTFLoader as a}from"./glTFLoader-Bp7IfGPK.js";import{aG as d,aH as h}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="MSFT_minecraftMesh";class m{constructor(r){this.name=t,this._loader=r,this.enabled=this._loader.isExtensionUsed(t)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,s,e){return a.LoadExtraAsync(r,s,this.name,async(o,n)=>{if(n){if(!this._loader._pbrMaterialImpl)throw new Error(`${o}: Material type not supported`);const p=this._loader.loadMaterialPropertiesAsync(r,s,e);return e.needAlphaBlending()&&(e.forceDepthWrite=!0,e.separateCullingPass=!0),e.backFaceCulling=e.forceDepthWrite,e.twoSidedLighting=!0,await p}})}}d(t);h(t,!0,i=>new m(i));export{m as MSFT_minecraftMesh};
