From 74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 Mon Sep 17 00:00:00 2001 From: iamn1ck Date: Sun, 19 Feb 2017 07:00:34 -0600 Subject: -quadtree and opengl rendering are now in the master branch ! -using sdl_rect for location and size ended up being not so great due to it not having floats, so we reverted back to using location -much, much refractoring is now needed --- inc/opengl/basicshader.vert | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 inc/opengl/basicshader.vert (limited to 'inc/opengl/basicshader.vert') diff --git a/inc/opengl/basicshader.vert b/inc/opengl/basicshader.vert new file mode 100644 index 0000000..f17aef5 --- /dev/null +++ b/inc/opengl/basicshader.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; +} -- cgit v1.2.3