summaryrefslogtreecommitdiffstats
path: root/progs/glsl/multitex.vert
blob: 4fae3b73fb70c40ab31760cf535c6ac863c8207c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Multi-texture vertex shader
// Brian Paul


attribute vec4 TexCoord0, TexCoord1;
attribute vec4 VertCoord;

void main() 
{
   gl_TexCoord[0] = TexCoord0;
   gl_TexCoord[1] = TexCoord1;
   // note: may use gl_Vertex or VertCoord here for testing:
   gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}