aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/new.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/new.vert')
-rw-r--r--shaders/new.vert3
1 files changed, 3 insertions, 0 deletions
diff --git a/shaders/new.vert b/shaders/new.vert
index 1bedfd3..b2fcba4 100644
--- a/shaders/new.vert
+++ b/shaders/new.vert
@@ -2,10 +2,13 @@ attribute vec3 coord2d;
attribute vec2 tex_coord;
uniform mat4 ortho;
+uniform vec4 tex_color;
varying vec2 texCoord;
+varying vec4 color;
void main(){
texCoord = tex_coord;
+ color = tex_color;
gl_Position = ortho * vec4(coord2d.xyz, 1.0);
}