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.

21 lines (18 loc) 675 B
import { S as ShaderStore } from './index-MZPybX0H.esm.js'; // Do not edit. const name = "postprocessVertexShader"; const shader = `attribute vec2 position;uniform vec2 scale;varying vec2 vUV;const vec2 madd=vec2(0.5,0.5); #define CUSTOM_VERTEX_DEFINITIONS void main(void) { #define CUSTOM_VERTEX_MAIN_BEGIN vUV=(position*madd+madd)*scale;gl_Position=vec4(position,0.0,1.0); #define CUSTOM_VERTEX_MAIN_END }`; // Sideeffect if (!ShaderStore.ShadersStore[name]) { ShaderStore.ShadersStore[name] = shader; } /** @internal */ const postprocessVertexShader = { name, shader }; export { postprocessVertexShader }; //# sourceMappingURL=postprocess.vertex-B4g2UVTv.esm.js.map