#version 300 es in vec3 a_position; uniform mat4 u_matrix; out vec3 pos; void main() { // convert the position from pixels to 0.0 to 1.0 vec4 scale = vec4(a_position, 1) * u_matrix; scale.y = scale.y * 0.85; gl_Position = scale; pos = a_position; }