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 (15 loc) 604 B
import { S as ShaderStore } from './index-MZPybX0H.esm.js'; // Do not edit. const name = "logDepthVertex"; const shader = `#ifdef LOGARITHMICDEPTH vertexOutputs.vFragmentDepth=1.0+vertexOutputs.position.w;vertexOutputs.position.z=log2(max(0.000001,vertexOutputs.vFragmentDepth))*uniforms.logarithmicDepthConstant; #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name]) { ShaderStore.IncludesShadersStoreWGSL[name] = shader; } /** @internal */ const logDepthVertexWGSL = { name, shader }; export { logDepthVertexWGSL as l }; //# sourceMappingURL=logDepthVertex-CRHdQPyM.esm.js.map