aboutsummaryrefslogtreecommitdiff
path: root/system/shaders/yuv2rgb_vertex_gles.glsl
diff options
context:
space:
mode:
authordavilla <davilla@svn>2010-05-18 07:29:17 +0000
committerdavilla <davilla@svn>2010-05-18 07:29:17 +0000
commit07e5742b33364530dcb27835d7d62eeb84b07c95 (patch)
treec3d3d19fdfca7d7e82bf5c4637c20bc0b2169da4 /system/shaders/yuv2rgb_vertex_gles.glsl
parent7c8f29a57f510944bfa0beae8371b8d20a8e22f0 (diff)
[arm] merge arm-camelot into trunk, thanks to mcgeagh for all his hard working getting arm platform rolling
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30281 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'system/shaders/yuv2rgb_vertex_gles.glsl')
-rw-r--r--system/shaders/yuv2rgb_vertex_gles.glsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/shaders/yuv2rgb_vertex_gles.glsl b/system/shaders/yuv2rgb_vertex_gles.glsl
new file mode 100644
index 0000000000..ee0c70a37d
--- /dev/null
+++ b/system/shaders/yuv2rgb_vertex_gles.glsl
@@ -0,0 +1,18 @@
+attribute vec4 m_attrpos;
+attribute vec2 m_attrcordY;
+attribute vec2 m_attrcordU;
+attribute vec2 m_attrcordV;
+varying vec2 m_cordY;
+varying vec2 m_cordU;
+varying vec2 m_cordV;
+uniform mat4 m_proj;
+uniform mat4 m_model;
+
+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;
+}