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.

18 lines (16 loc) 447 B
const ext = { id: "KHR_materials_emissive_strength", async applyMaterial(mat) { const e = mat._rawMatDef?.extensions?.KHR_materials_emissive_strength; if (!e) { return null; } const s = e.emissiveStrength ?? 1; const f = mat._emissiveFactor; return { emissiveColor: [f[0] * s, f[1] * s, f[2] * s] }; } }; export { ext as default }; //# sourceMappingURL=gltf-ext-emissive-strength-CIvH5qSE.esm.js.map