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.

35 lines (31 loc) 916 B
import { S as ShaderStore } from './index-MZPybX0H.esm.js'; // Do not edit. const name$1 = "fogVertexDeclaration"; const shader$1 = `#ifdef FOG varying vFogDistance: vec3f; #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name$1]) { ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1; } /** @internal */ const fogVertexDeclarationWGSL = { name: name$1, shader: shader$1 }; // Do not edit. const name = "fogVertex"; const shader = `#ifdef FOG #ifdef SCENE_UBO vertexOutputs.vFogDistance=(scene.view*worldPos).xyz; #else vertexOutputs.vFogDistance=(uniforms.view*worldPos).xyz; #endif #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name]) { ShaderStore.IncludesShadersStoreWGSL[name] = shader; } /** @internal */ const fogVertexWGSL = { name, shader }; export { fogVertexWGSL as a, fogVertexDeclarationWGSL as f }; //# sourceMappingURL=fogVertex-jAzZJUX3.esm.js.map