summaryrefslogtreecommitdiffstats
path: root/system/shaders/GL/1.5/gl_shader_vert.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'system/shaders/GL/1.5/gl_shader_vert.glsl')
-rw-r--r--system/shaders/GL/1.5/gl_shader_vert.glsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/shaders/GL/1.5/gl_shader_vert.glsl b/system/shaders/GL/1.5/gl_shader_vert.glsl
new file mode 100644
index 0000000..a856831
--- /dev/null
+++ b/system/shaders/GL/1.5/gl_shader_vert.glsl
@@ -0,0 +1,20 @@
+#version 150
+
+in vec4 m_attrpos;
+in vec4 m_attrcol;
+in vec4 m_attrcord0;
+in vec4 m_attrcord1;
+out vec4 m_cord0;
+out vec4 m_cord1;
+out vec4 m_colour;
+uniform mat4 m_proj;
+uniform mat4 m_model;
+
+void main ()
+{
+ mat4 mvp = m_proj * m_model;
+ gl_Position = mvp * m_attrpos;
+ m_colour = m_attrcol;
+ m_cord0 = m_attrcord0;
+ m_cord1 = m_attrcord1;
+}