aboutsummaryrefslogtreecommitdiffstats
path: root/src/test-native/bug1398/shader/RedSquareShader.vp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test-native/bug1398/shader/RedSquareShader.vp')
-rw-r--r--src/test-native/bug1398/shader/RedSquareShader.vp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test-native/bug1398/shader/RedSquareShader.vp b/src/test-native/bug1398/shader/RedSquareShader.vp
new file mode 100644
index 000000000..9283dd7bd
--- /dev/null
+++ b/src/test-native/bug1398/shader/RedSquareShader.vp
@@ -0,0 +1,18 @@
+// Copyright 2010 JogAmp Community. All rights reserved.
+
+#if __VERSION__ >= 130
+ #define attribute in
+ #define varying out
+#endif
+
+uniform mat4 mgl_PMVMatrix[2];
+attribute vec4 mgl_Vertex;
+attribute vec4 mgl_Color;
+varying vec4 frontColor;
+
+void main(void)
+{
+ frontColor=mgl_Color;
+ gl_Position = mgl_PMVMatrix[0] * mgl_PMVMatrix[1] * mgl_Vertex;
+}
+