15 lines
223 B
GLSL
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;
|
|
}
|