]> gitweb.factorcode.org Git - factor.git/blob - extra/papier/render/papier.v.glsl
papier: Add papier as a demo (2009)
[factor.git] / extra / papier / render / papier.v.glsl
1 #version 110
2
3 uniform mat4 p_matrix;
4 uniform vec3 eye;
5
6 attribute vec3 vertex;
7 attribute vec2 texcoord;
8 attribute vec4 color;
9
10 varying vec2 frag_texcoord;
11 varying vec4 frag_color;
12
13 void
14 main()
15 {
16     gl_Position = p_matrix * vec4(vertex - eye, 1.0);
17     frag_texcoord = texcoord;
18     frag_color = color;
19 }