2020-04-05 15:28:22 +02:00
|
|
|
#version 300 es
|
|
|
|
|
2020-08-01 21:51:54 +02:00
|
|
|
in vec3 a_position;
|
|
|
|
uniform mat4 u_matrix;
|
|
|
|
|
|
|
|
out vec3 pos;
|
|
|
|
|
2020-04-05 15:28:22 +02:00
|
|
|
void main() {
|
|
|
|
// convert the position from pixels to 0.0 to 1.0
|
2020-08-01 21:51:54 +02:00
|
|
|
vec4 scale = vec4(a_position, 1) * u_matrix;
|
|
|
|
scale.y = scale.y * 0.85;
|
|
|
|
gl_Position = scale;
|
|
|
|
pos = a_position;
|
2020-04-05 15:28:22 +02:00
|
|
|
}
|