UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

3 lines (2 loc) 984 B
import{bM as e,bJ as s,bI as t}from"./index-Bw2N6w1y.esm.min.js";import{GLTFLoader as i}from"./glTFLoader-DEYqxGxH.esm.min.js";import"./bone-BwMp7T0B.esm.min.js";import"./skeleton-CkTZwWbM.esm.min.js";import"./rawTexture-CPAqHIA7.esm.min.js";import"./assetContainer-21j7tcC8.esm.min.js";import"./objectModelMapping-DX92iJ8M.esm.min.js";const r="MSFT_minecraftMesh";class n{constructor(e){this.name=r,this._loader=e,this.enabled=this._loader.isExtensionUsed(r)}dispose(){this._loader=null}loadMaterialPropertiesAsync(s,t,r){return i.LoadExtraAsync(s,t,this.name,(async(i,n)=>{if(n){if(!(r instanceof e))throw new Error(`${i}: Material type not supported`);const n=this._loader.loadMaterialPropertiesAsync(s,t,r);return r.needAlphaBlending()&&(r.forceDepthWrite=!0,r.separateCullingPass=!0),r.backFaceCulling=r.forceDepthWrite,r.twoSidedLighting=!0,await n}}))}}s(r),t(r,!0,(e=>new n(e)));export{n as MSFT_minecraftMesh}; //# sourceMappingURL=MSFT_minecraftMesh-tDGzxEDq.esm.min.js.map