@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) • 682 B
JavaScript
import{c as e}from"./material-view-DNNjGSTW.esm.min.js";function a(a,r){const t=a._renderFeatures??{features:0},s=e(a,{features:-65537&t.features|1048576});return Object.defineProperty(s,"_esmShadowParamsUBO",{value:r,enumerable:!1}),Object.defineProperty(s,"_esmShadowDepthCode",{value:"let depthMetricSM = (input.clipPos.z + shadowParams.depthValues.x) / shadowParams.depthValues.y + shadowParams.biasAndScale.x;\nlet depthSM = clamp(exp(-min(87.0, shadowParams.biasAndScale.z * depthMetricSM)), 0.0, 1.0);\nreturn vec4<f32>(depthSM, 1.0, 1.0, 1.0);",enumerable:!1}),s}export{a as createStandardEsmShadowMaterialView};
//# sourceMappingURL=esm-shadow-view-nhqYpMvF.esm.min.js.map