2022-04-07 18:46:57 +02:00

15 lines
299 B
Plaintext

#version 330
uniform mat4 matrix_image;
uniform mat4 matrix_background;
in vec2 position;
out vec2 position_background;
out vec2 uv;
void main() {
vec4 p = vec4(position, 0.0, 1.0);
gl_Position = matrix_image * p;
position_background = (matrix_background * p).xy;
uv = position;
}