Files
matrix/shaders/glsl/bloomPass.vert.glsl
2025-04-24 08:54:03 -07:00

11 lines
267 B
GLSL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* shaders/glsl/fullscreen.vert.glsl */
precision mediump float;
attribute vec2 aPosition; // will come from JS buffer
varying vec2 vUV;
void main () {
vUV = aPosition * 0.5 + 0.5; // (1…1) → (0…1)
gl_Position = vec4(aPosition, 0.0, 1.0);
}