Initial import.
[pwl6.git] / src / yuu / data / shaders / default.vert
1 /* This is free and unencumbered software released into the public
2 domain. To the extent possible under law, the author of this file
3 waives all copyright and related or neighboring rights to it.
4 */
5
6 precision mediump float;
7
8 attribute vec3 position;
9 attribute vec2 texCoord;
10 attribute vec4 color;
11
12 uniform mat4 model;
13 uniform mat4 view;
14 uniform mat4 projection;
15 varying vec2 fTexCoord;
16 varying vec4 fColor;
17
18 void main(void) {
19 gl_Position = projection * view * model * vec4(position, 1.0);
20 fTexCoord = texCoord;
21 fColor = color;
22 }