gtk/demos/gtk-demo/glarea-gl.vs.glsl
Emmanuele Bassi 872b5115ea demo: Add GLES support to the GtkGLArea demo
We need new shaders, and we need to select the correct shader when
building the program we use to render the triangle.
2016-04-25 14:35:02 +01:00

9 lines
120 B
GLSL

#version 330
layout(location = 0) in vec4 position;
uniform mat4 mvp;
void main() {
gl_Position = mvp * position;
}