aboutsummaryrefslogtreecommitdiffstats
path: root/Shaders/ui.vert
diff options
context:
space:
mode:
authorclyne <clyne@bitgloo.com>2019-09-25 14:35:10 -0400
committerGitHub <noreply@github.com>2019-09-25 14:35:10 -0400
commit5de39474dd9c17cc7f09015f291769fbe3fd5931 (patch)
tree73de6ae8aad4418cd19d55d5b468a20b404446ec /Shaders/ui.vert
parentec0ab456cf869f2daa6dea41158c54da745626d8 (diff)
parent1703f84121f18277c2a9bd671e204730c131c102 (diff)
Merge pull request #2 from tcsullivan/font-support
Font support
Diffstat (limited to 'Shaders/ui.vert')
-rw-r--r--Shaders/ui.vert21
1 files changed, 13 insertions, 8 deletions
diff --git a/Shaders/ui.vert b/Shaders/ui.vert
index b2fcba4..d2e3902 100644
--- a/Shaders/ui.vert
+++ b/Shaders/ui.vert
@@ -1,14 +1,19 @@
-attribute vec3 coord2d;
-attribute vec2 tex_coord;
+#version 130
-uniform mat4 ortho;
-uniform vec4 tex_color;
+in vec3 coord2d;
+in vec2 tex_coord;
-varying vec2 texCoord;
-varying vec4 color;
+uniform mat4 projection;
+uniform mat4 view;
+uniform mat4 model;
+
+out vec2 texCoord;
+out vec4 color;
void main(){
texCoord = tex_coord;
- color = tex_color;
- gl_Position = ortho * vec4(coord2d.xyz, 1.0);
+ color = vec4(0.0f, 0.0f, 0.0f, 1.0f);
+ //color = tex_color;
+ //gl_Position = ortho * vec4(coord2d.xyz, 1.0f);
+ gl_Position = projection * view * model * vec4(coord2d.xyz, 1.0f);
}