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.

34 lines (30 loc) 1.24 kB
import { S as ShaderStore } from './index-FzOfPXLV.esm.js'; import './kernelBlurVaryingDeclaration-DYRlZbl3.esm.js'; // Do not edit. const name$1 = "kernelBlurVertex"; const shader$1 = `vertexOutputs.sampleCoord{X}=vertexOutputs.sampleCenter+uniforms.delta*KERNEL_OFFSET{X};`; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name$1]) { ShaderStore.IncludesShadersStoreWGSL[name$1] = shader$1; } // Do not edit. const name = "kernelBlurVertexShader"; const shader = `attribute position: vec2f;uniform delta: vec2f;varying sampleCenter: vec2f; #include<kernelBlurVaryingDeclaration>[0..varyingCount] #define CUSTOM_VERTEX_DEFINITIONS @vertex fn main(input : VertexInputs)->FragmentInputs {const madd: vec2f= vec2f(0.5,0.5); #define CUSTOM_VERTEX_MAIN_BEGIN vertexOutputs.sampleCenter=(input.position*madd+madd); #include<kernelBlurVertex>[0..varyingCount] vertexOutputs.position= vec4f(input.position,0.0,1.0); #define CUSTOM_VERTEX_MAIN_END }`; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ const kernelBlurVertexShaderWGSL = { name, shader }; export { kernelBlurVertexShaderWGSL }; //# sourceMappingURL=kernelBlur.vertex-D_oAZPE6.esm.js.map