audio-vis/shaders/wave.vert
2020-08-01 21:51:54 +02:00

14 lines
271 B
GLSL

#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;
}