Files
billiards_gl/vertex.glsl
Florian Stecker 04a707b4ed initial version
2025-12-07 19:04:34 -05:00

15 lines
223 B
GLSL

#version 130
in vec2 pos;
in float vertexTime;
out float normalizedTime;
uniform float time;
uniform mat4 mvp;
void main() {
gl_Position = mvp * vec4(pos.x, pos.y, 0, 1);
normalizedTime = vertexTime - time;
}