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.

28 lines (25 loc) 760 B
import { S as ShaderStore } from './index-MZPybX0H.esm.js'; // Do not edit. const name = "clearQuadVertexShader"; const shader = `uniform depthValue: f32;const pos=array( vec2f(-1.0,1.0), vec2f(1.0,1.0), vec2f(-1.0,-1.0), vec2f(1.0,-1.0) ); #define CUSTOM_VERTEX_DEFINITIONS @vertex fn main(input : VertexInputs)->FragmentInputs { #define CUSTOM_VERTEX_MAIN_BEGIN vertexOutputs.position=vec4f(pos[vertexInputs.vertexIndex],uniforms.depthValue,1.0); #define CUSTOM_VERTEX_MAIN_END } `; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ const clearQuadVertexShaderWGSL = { name, shader }; export { clearQuadVertexShaderWGSL }; //# sourceMappingURL=clearQuad.vertex-Bsj0uOdp.esm.js.map