UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

23 lines 942 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; import "./ShadersInclude/kernelBlurVaryingDeclaration.js"; import "./ShadersInclude/kernelBlurVertex.js"; 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 */ export const kernelBlurVertexShaderWGSL = { name, shader }; //# sourceMappingURL=kernelBlur.vertex.js.map