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) 800 B
import{S as e}from"./index-Bw2N6w1y.esm.min.js";const t="fogVertexDeclaration";e.IncludesShadersStoreWGSL[t]||(e.IncludesShadersStoreWGSL[t]="#ifdef FOG\nvarying vFogDistance: vec3f;\n#endif\n");const n="fogVertex";e.IncludesShadersStoreWGSL[n]||(e.IncludesShadersStoreWGSL[n]="#ifdef FOG\n#ifdef SCENE_UBO\nvertexOutputs.vFogDistance=(scene.view*worldPos).xyz;\n#else\nvertexOutputs.vFogDistance=(uniforms.view*worldPos).xyz;\n#endif\n#endif\n");const s="logDepthVertex";e.IncludesShadersStoreWGSL[s]||(e.IncludesShadersStoreWGSL[s]="#ifdef LOGARITHMICDEPTH\nvertexOutputs.vFragmentDepth=1.0+vertexOutputs.position.w;vertexOutputs.position.z=log2(max(0.000001,vertexOutputs.vFragmentDepth))*uniforms.logarithmicDepthConstant;\n#endif\n"); //# sourceMappingURL=logDepthVertex-C70dZvsO.esm.min.js.map