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_core.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_core.frag')
-rw-r--r-- | src/qtmultimediaquicktools/shaders/yuyvvideo_core.frag | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/qtmultimediaquicktools/shaders/yuyvvideo_core.frag b/src/qtmultimediaquicktools/shaders/yuyvvideo_core.frag deleted file mode 100644 index a30d7818a..000000000 --- a/src/qtmultimediaquicktools/shaders/yuyvvideo_core.frag +++ /dev/null @@ -1,14 +0,0 @@ -#version 150 core -// Reference: qgsvideonode_yuv.cpp:387 to 398 -uniform sampler2D yTexture; // Y component passed as GL_RG, in yuyv Y = r -uniform sampler2D uvTexture; // UV component passed as RGBA macropixel, in uyvy U = g, V = a -uniform mat4 colorMatrix; -uniform float opacity; -in vec2 qt_TexCoord; -out vec4 fragColor; - -void main() -{ - vec3 YUV = vec3(texture(yTexture, qt_TexCoord).r, texture2D(uvTexture, qt_TexCoord).ga); - fragColor = colorMatrix * vec4(YUV, 1.0) * opacity; -} |