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) 761 B
import{c as e}from"./material-view-DNNjGSTW.esm.min.js";import{H as a,Q as r}from"./index-DFZFpUG-.esm.min.js";function s(s,t){const m=s._renderFeatures??{features:0,features2:0},d=e(s,{features:m.features&~r,features2:(m.features2??0)|a});return Object.defineProperty(d,"_esmShadowParamsUBO",{value:t,enumerable:!1}),Object.defineProperty(d,"_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}),d}export{s as createPbrEsmShadowMaterialView}; //# sourceMappingURL=esm-shadow-view-CZDYXfCW.esm.min.js.map