postprocess.vertex.js 698 B

1234567891011121314151617
  1. // Do not edit.
  2. import { ShaderStore } from "../Engines/shaderStore.js";
  3. const name = "postprocessVertexShader";
  4. const shader = `attribute position: vec2<f32>;uniform scale: vec2<f32>;varying vUV: vec2<f32>;const madd=vec2(0.5,0.5);
  5. #define CUSTOM_VERTEX_DEFINITIONS
  6. @vertex
  7. fn main(input : VertexInputs)->FragmentInputs {
  8. #define CUSTOM_VERTEX_MAIN_BEGIN
  9. vertexOutputs.vUV=(vertexInputs.position*madd+madd)*uniforms.scale;vertexOutputs.position=vec4(vertexInputs.position,0.0,1.0);
  10. #define CUSTOM_VERTEX_MAIN_END
  11. }
  12. `;
  13. // Sideeffect
  14. ShaderStore.ShadersStoreWGSL[name] = shader;
  15. /** @internal */
  16. export const postprocessVertexShader = { name, shader };
  17. //# sourceMappingURL=postprocess.vertex.js.map