aboutsummaryrefslogtreecommitdiffstats
path: root/Shaders/ui.vert
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-18 14:40:23 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-18 14:40:23 -0400
commit0869328b12ff9b77000915f37443dcf2468d881e (patch)
tree1e9e4d5ca43661a4aca8f5052f1ba67d23b9d955 /Shaders/ui.vert
parent0e7f7791fd592f0240a30168a9a570c57b0f5880 (diff)
parent8b834d0440f85a452694fb5cbb2cd9f4dae07aa2 (diff)
Added UI rendering support to render loop, although fonts don't render yet
Diffstat (limited to 'Shaders/ui.vert')
-rw-r--r--Shaders/ui.vert19
1 files changed, 19 insertions, 0 deletions
diff --git a/Shaders/ui.vert b/Shaders/ui.vert
new file mode 100644
index 0000000..ee4f92c
--- /dev/null
+++ b/Shaders/ui.vert
@@ -0,0 +1,19 @@
+#version 130
+
+in vec3 coord2d;
+in vec2 tex_coord;
+
+uniform mat4 projection;
+uniform mat4 view;
+uniform mat4 model;
+
+out vec2 texCoord;
+out vec4 color;
+
+void main(){
+ texCoord = tex_coord;
+ color = vec4(1.0, 1.0, 1.0, 1.0);
+ //color = tex_color;
+ //gl_Position = ortho * vec4(coord2d.xyz, 1.0);
+ gl_Position = projection * view * model * vec4(coord2d, 1.0f);
+}