Correction TextFrag.glsl
This commit is contained in:
parent
6a93931f68
commit
df57374117
@ -11,8 +11,6 @@ uniform sampler2D texture1;
|
|||||||
void main(){
|
void main(){
|
||||||
vec3 black = vec3(0.0f, 0.0f , 0.0f);
|
vec3 black = vec3(0.0f, 0.0f , 0.0f);
|
||||||
vec4 tex = texture(texture1, texCoord);
|
vec4 tex = texture(texture1, texCoord);
|
||||||
if (tex.xyz == black){
|
tex.a = (tex.x + tex.y + tex.z) / 3.0f;
|
||||||
tex.a = 0.0f;
|
|
||||||
}
|
|
||||||
FragColor = tex;
|
FragColor = tex;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user