File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 8
8
varying highp vec2 textureCoordinate;
9
9
uniform sampler2D inputImageTexture;
10
10
uniform vec4 color;
11
- uniform int useExistingAlpha;
11
+ uniform float useExistingAlpha;
12
12
13
13
void main ()
14
14
{
15
+ lowp vec4 textureColor = texture2D (inputImageTexture, textureCoordinate);
15
16
gl_FragColor = vec4 (color.rgb , max (textureColor.a , 1.0 - useExistingAlpha));
16
17
}
17
18
);
@@ -21,10 +22,11 @@ void main()
21
22
varying vec2 textureCoordinate;
22
23
uniform sampler2D inputImageTexture;
23
24
uniform vec4 color;
24
- uniform int useExistingAlpha;
25
+ uniform float useExistingAlpha;
25
26
26
27
void main ()
27
28
{
29
+ vec4 textureColor = texture2D (inputImageTexture, textureCoordinate);
28
30
gl_FragColor = vec4 (color.rgb , max (textureColor.a , 1.0 - useExistingAlpha));
29
31
}
30
32
);
You can’t perform that action at this time.
0 commit comments