summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools/shaders/triplanaryuvvideo.frag
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-06-04 16:31:22 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-06-04 18:40:03 +0200
commitcf815557eef1d1d34e20d13df24baae5e2f138ac (patch)
tree6a96e21bef8ba08c08dac0be36dbc065bbaef4f7 /src/qtmultimediaquicktools/shaders/triplanaryuvvideo.frag
parent0e3b08d2b8cec6b6489cb99de3f58d1ccdb439d8 (diff)
RHI: Remove gl code from video nodes
Now QSGMaterialShader handles rhi textures too. Task-number: QTBUG-78678 Change-Id: I410185c80bd104741fd5b52deeb87eb97531410a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/qtmultimediaquicktools/shaders/triplanaryuvvideo.frag')
-rw-r--r--src/qtmultimediaquicktools/shaders/triplanaryuvvideo.frag18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/qtmultimediaquicktools/shaders/triplanaryuvvideo.frag b/src/qtmultimediaquicktools/shaders/triplanaryuvvideo.frag
deleted file mode 100644
index dad8bb5a9..000000000
--- a/src/qtmultimediaquicktools/shaders/triplanaryuvvideo.frag
+++ /dev/null
@@ -1,18 +0,0 @@
-uniform sampler2D plane1Texture;
-uniform sampler2D plane2Texture;
-uniform sampler2D plane3Texture;
-uniform mediump mat4 colorMatrix;
-uniform lowp float opacity;
-
-varying highp vec2 plane1TexCoord;
-varying highp vec2 plane2TexCoord;
-varying highp vec2 plane3TexCoord;
-
-void main()
-{
- mediump float Y = texture2D(plane1Texture, plane1TexCoord).r;
- mediump float U = texture2D(plane2Texture, plane2TexCoord).r;
- mediump float V = texture2D(plane3Texture, plane3TexCoord).r;
- mediump vec4 color = vec4(Y, U, V, 1.);
- gl_FragColor = colorMatrix * color * opacity;
-}