summaryrefslogtreecommitdiffstats
path: root/progs/glsl/multitex.vert
diff options
context:
space:
mode:
Diffstat (limited to 'progs/glsl/multitex.vert')
-rw-r--r--progs/glsl/multitex.vert14
1 files changed, 14 insertions, 0 deletions
diff --git a/progs/glsl/multitex.vert b/progs/glsl/multitex.vert
new file mode 100644
index 00000000000..4fae3b73fb7
--- /dev/null
+++ b/progs/glsl/multitex.vert
@@ -0,0 +1,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;
+}