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