2008-05-20 11:01:17 -06:00
|
|
|
// Multi-texture vertex shader
|
|
|
|
// Brian Paul
|
|
|
|
|
|
|
|
|
2009-02-02 16:50:45 -07:00
|
|
|
attribute vec4 TexCoord0, TexCoord1;
|
|
|
|
attribute vec4 VertCoord;
|
|
|
|
|
2008-05-20 11:01:17 -06:00
|
|
|
void main()
|
|
|
|
{
|
2009-02-02 16:50:45 -07:00
|
|
|
gl_TexCoord[0] = TexCoord0;
|
|
|
|
gl_TexCoord[1] = TexCoord1;
|
|
|
|
// note: may use gl_Vertex or VertCoord here for testing:
|
|
|
|
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
2008-05-20 11:01:17 -06:00
|
|
|
}
|