Skip to content

Commit 4907ea7

Browse files
committed
GLSL fixes
1 parent 53886db commit 4907ea7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

framework/Source/GPUImageSolidColorGenerator.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
varying highp vec2 textureCoordinate;
99
uniform sampler2D inputImageTexture;
1010
uniform vec4 color;
11-
uniform int useExistingAlpha;
11+
uniform float useExistingAlpha;
1212

1313
void main()
1414
{
15+
lowp vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);
1516
gl_FragColor = vec4(color.rgb, max(textureColor.a, 1.0 - useExistingAlpha));
1617
}
1718
);
@@ -21,10 +22,11 @@ void main()
2122
varying vec2 textureCoordinate;
2223
uniform sampler2D inputImageTexture;
2324
uniform vec4 color;
24-
uniform int useExistingAlpha;
25+
uniform float useExistingAlpha;
2526

2627
void main()
2728
{
29+
vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);
2830
gl_FragColor = vec4(color.rgb, max(textureColor.a, 1.0 - useExistingAlpha));
2931
}
3032
);

0 commit comments

Comments
 (0)