audio-vis/shaders/wave2d.vert

12 lines
181 B
GLSL
Raw Normal View History

2020-08-06 23:44:37 +02:00
#version 300 es
in vec3 a_position;
uniform mat4 u_matrix;
out vec4 pos;
void main() {
pos = u_matrix * vec4(a_position, 1);
pos.y = pos.y * 0.6;
gl_Position = pos;
}