aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.vert
blob: ce7fa5aa3df6e17078a964f33c1b7e72151c6f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}