Shader fix to be compatible with GLES2

This commit is contained in:
Sergey Lapin
2021-03-30 01:33:27 +03:00
parent 189497b77b
commit 73f7f8cbdb

View File

@@ -1,5 +1,5 @@
uniform sampler2D yuvTexture; // UYVY macropixel texture passed as RGBA format uniform sampler2D yuvTexture; // UYVY macropixel texture passed as RGBA format
uniform float imageWidth; // The UYVY texture appears to the shader with 1/2 the image width since we use the RGBA format to pass UYVY uniform mediump float imageWidth; // The UYVY texture appears to the shader with 1/2 the image width since we use the RGBA format to pass UYVY
uniform mediump mat4 colorMatrix; uniform mediump mat4 colorMatrix;
uniform lowp float opacity; uniform lowp float opacity;