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) 604 B
import{S as e}from"./index-Bw2N6w1y.esm.min.js";const n="fogVertexDeclaration";e.IncludesShadersStore[n]||(e.IncludesShadersStore[n]="#ifdef FOG\nvarying vec3 vFogDistance;\n#endif\n");const t="fogVertex";e.IncludesShadersStore[t]||(e.IncludesShadersStore[t]="#ifdef FOG\nvFogDistance=(view*worldPos).xyz;\n#endif\n");const o="logDepthVertex";e.IncludesShadersStore[o]||(e.IncludesShadersStore[o]="#ifdef LOGARITHMICDEPTH\nvFragmentDepth=1.0+gl_Position.w;gl_Position.z=log2(max(0.000001,vFragmentDepth))*logarithmicDepthConstant;\n#endif\n"); //# sourceMappingURL=logDepthVertex-C_P25MDi.esm.min.js.map