]> git.sesse.net Git - nageru/blobdiff - nageru/cbcr_subsample.frag
Move most Nageru embedded shaders to the read_file() system.
[nageru] / nageru / cbcr_subsample.frag
diff --git a/nageru/cbcr_subsample.frag b/nageru/cbcr_subsample.frag
new file mode 100644 (file)
index 0000000..3714f99
--- /dev/null
@@ -0,0 +1,9 @@
+#version 130
+
+in vec2 tc0, tc1;
+uniform sampler2D cbcr_tex;
+out vec4 FragColor, FragColor2;
+void main() {
+       FragColor = 0.5 * (texture(cbcr_tex, tc0) + texture(cbcr_tex, tc1));
+       FragColor2 = FragColor;
+}