diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-06-04 16:31:22 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-06-04 18:40:03 +0200 |
commit | cf815557eef1d1d34e20d13df24baae5e2f138ac (patch) | |
tree | 6a96e21bef8ba08c08dac0be36dbc065bbaef4f7 /src/qtmultimediaquicktools/shaders/yuyvvideo.frag | |
parent | 0e3b08d2b8cec6b6489cb99de3f58d1ccdb439d8 (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/yuyvvideo.frag')
-rw-r--r-- | src/qtmultimediaquicktools/shaders/yuyvvideo.frag | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/qtmultimediaquicktools/shaders/yuyvvideo.frag b/src/qtmultimediaquicktools/shaders/yuyvvideo.frag deleted file mode 100644 index c2ad65b78..000000000 --- a/src/qtmultimediaquicktools/shaders/yuyvvideo.frag +++ /dev/null @@ -1,13 +0,0 @@ -// Reference: qgsvideonode_yuv.cpp:387 to 398 -uniform sampler2D yTexture; // Y component passed as GL_LUMINANCE_ALPHA, in yuyv Y = r -uniform sampler2D uvTexture; // UV component passed as RGBA macropixel, in yuyv U = g, V = a -uniform mediump mat4 colorMatrix; -uniform lowp float opacity; -varying highp vec2 qt_TexCoord; - -void main() -{ - mediump vec3 YUV = vec3(texture2D(yTexture, qt_TexCoord).r, texture2D(uvTexture, qt_TexCoord).ga); - - gl_FragColor = colorMatrix * vec4(YUV, 1.0) * opacity; -} |