14 lines
251 B
Plaintext
Raw Normal View History

2021-03-20 00:57:18 +01:00
#version 430
2021-03-20 00:57:18 +01:00
layout (location = 0) in vec2 position;
2021-03-20 00:57:18 +01:00
uniform float layer;
uniform float height;
2021-03-20 00:57:18 +01:00
out vec3 varPosition;
2021-03-20 00:57:18 +01:00
void main(void) {
gl_Position = vec4(position, 0.0, 1.0);
varPosition = vec3(position.x, position.y + height, layer);
}