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) 990 B
import{S as e}from"./index-Bw2N6w1y.esm.min.js";import"./kernelBlurVaryingDeclaration--Nms41LO.esm.min.js";const n="kernelBlurVertex";e.IncludesShadersStoreWGSL[n]||(e.IncludesShadersStoreWGSL[n]="vertexOutputs.sampleCoord{X}=vertexOutputs.sampleCenter+uniforms.delta*KERNEL_OFFSET{X};");const t="kernelBlurVertexShader",r="attribute position: vec2f;uniform delta: vec2f;varying sampleCenter: vec2f;\n#include<kernelBlurVaryingDeclaration>[0..varyingCount]\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {const madd: vec2f= vec2f(0.5,0.5);\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvertexOutputs.sampleCenter=(input.position*madd+madd);\n#include<kernelBlurVertex>[0..varyingCount]\nvertexOutputs.position= vec4f(input.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}";e.ShadersStoreWGSL[t]||(e.ShadersStoreWGSL[t]=r);const i={name:t,shader:r};export{i as kernelBlurVertexShaderWGSL}; //# sourceMappingURL=kernelBlur.vertex-BI1ir6p4.esm.min.js.map