summaryrefslogtreecommitdiffstats
path: root/system/shaders/GL/1.5/gl_yuv2rgb_vertex.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'system/shaders/GL/1.5/gl_yuv2rgb_vertex.glsl')
-rw-r--r--system/shaders/GL/1.5/gl_yuv2rgb_vertex.glsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/shaders/GL/1.5/gl_yuv2rgb_vertex.glsl b/system/shaders/GL/1.5/gl_yuv2rgb_vertex.glsl
new file mode 100644
index 0000000..4772bd4
--- /dev/null
+++ b/system/shaders/GL/1.5/gl_yuv2rgb_vertex.glsl
@@ -0,0 +1,20 @@
+#version 150
+
+uniform mat4 m_proj;
+uniform mat4 m_model;
+in vec4 m_attrpos;
+in vec2 m_attrcordY;
+in vec2 m_attrcordU;
+in vec2 m_attrcordV;
+out vec2 m_cordY;
+out vec2 m_cordU;
+out vec2 m_cordV;
+
+void main ()
+{
+ mat4 mvp = m_proj * m_model;
+ gl_Position = mvp * m_attrpos;
+ m_cordY = m_attrcordY;
+ m_cordU = m_attrcordU;
+ m_cordV = m_attrcordV;
+}