summaryrefslogtreecommitdiff
path: root/src/qcam/assets/shader/YUV.vert
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/assets/shader/YUV.vert')
-rw-r--r--src/qcam/assets/shader/YUV.vert16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/qcam/assets/shader/YUV.vert b/src/qcam/assets/shader/YUV.vert
new file mode 100644
index 00000000..f38e8045
--- /dev/null
+++ b/src/qcam/assets/shader/YUV.vert
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2020, Linaro
+ *
+ * YUV.vert - Vertex shader for YUV to RGB conversion
+ */
+
+attribute vec4 vertexIn;
+attribute vec2 textureIn;
+varying vec2 textureOut;
+
+void main(void)
+{
+ gl_Position = vertexIn;
+ textureOut = textureIn;
+}