Correction TextFrag.glsl

This commit is contained in:
Antoine 2021-06-03 17:04:55 +02:00
parent 6a93931f68
commit df57374117

View File

@ -11,8 +11,6 @@ uniform sampler2D texture1;
void main(){
vec3 black = vec3(0.0f, 0.0f , 0.0f);
vec4 tex = texture(texture1, texCoord);
if (tex.xyz == black){
tex.a = 0.0f;
}
tex.a = (tex.x + tex.y + tex.z) / 3.0f;
FragColor = tex;
}