@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) • 579 B
JavaScript
import{S as e}from"./index-BPURObVq.esm.min.js";const n="fogVertexDeclaration",s="#ifdef FOG\nvarying vFogDistance: vec3f;\n#endif\n";e.IncludesShadersStoreWGSL[n]||(e.IncludesShadersStoreWGSL[n]=s);const r={name:n,shader:s},o="fogVertex",t="#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";e.IncludesShadersStoreWGSL[o]||(e.IncludesShadersStoreWGSL[o]=t);const d={name:o,shader:t};export{d as a,r as f};
//# sourceMappingURL=fogVertex-BcRbwqm0.esm.min.js.map