diff options
Diffstat (limited to 'src/render/shaders')
| -rw-r--r-- | src/render/shaders/glsl/CM.frag | 6 | ||||
| -rw-r--r-- | src/render/shaders/glsl/ext.frag | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/render/shaders/glsl/CM.frag b/src/render/shaders/glsl/CM.frag index 031fe7f3..7f075b82 100644 --- a/src/render/shaders/glsl/CM.frag +++ b/src/render/shaders/glsl/CM.frag @@ -1,11 +1,9 @@ #version 300 es -//#extension GL_OES_EGL_image_external : require #extension GL_ARB_shading_language_include : enable precision highp float; in vec2 v_texcoord; uniform sampler2D tex; -//uniform samplerExternalOES texture0; uniform int texType; // eTextureType: 0 - rgba, 1 - rgbx, 2 - ext // uniform int skipCM; @@ -30,8 +28,8 @@ void main() { vec4 pixColor; if (texType == 1) pixColor = vec4(texture(tex, v_texcoord).rgb, 1.0); -// else if (texType == 2) -// pixColor = texture(texture0, v_texcoord); + //else if (texType == 2) + // discard; // this shouldnt happen. else // assume rgba pixColor = texture(tex, v_texcoord); diff --git a/src/render/shaders/glsl/ext.frag b/src/render/shaders/glsl/ext.frag index f540a9f9..e855a832 100644 --- a/src/render/shaders/glsl/ext.frag +++ b/src/render/shaders/glsl/ext.frag @@ -5,7 +5,7 @@ precision highp float; in vec2 v_texcoord; -uniform samplerExternalOES texture0; +uniform samplerExternalOES tex; uniform float alpha; #include "rounding.glsl" @@ -20,7 +20,7 @@ uniform vec3 tint; layout(location = 0) out vec4 fragColor; void main() { - vec4 pixColor = texture(texture0, v_texcoord); + vec4 pixColor = texture(tex, v_texcoord); if (discardOpaque == 1 && pixColor[3] * alpha == 1.0) discard; |
