diff options
Diffstat (limited to 'inc/opengl/theshader.vert')
-rw-r--r-- | inc/opengl/theshader.vert | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/opengl/theshader.vert b/inc/opengl/theshader.vert new file mode 100644 index 0000000..b7cfe3b --- /dev/null +++ b/inc/opengl/theshader.vert @@ -0,0 +1,15 @@ +#version 320 es
+in highp vec2 pos;
+in highp vec3 color;
+in highp float sides;
+uniform mat4 MVP;
+
+out highp vec3 fColor;
+out highp float vSides;
+
+void main()
+{
+ gl_Position = MVP * vec4(pos, 0.0, 1.0);
+ fColor = color;
+ vSides = sides;
+}
|