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