18 lines
237 B
GLSL
18 lines
237 B
GLSL
#version 330 core
|
|
|
|
in vec2 TexCoord;
|
|
|
|
out vec4 FragColor;
|
|
|
|
uniform sampler2D tex;
|
|
|
|
void main()
|
|
{
|
|
vec4 texResult = texture(tex, TexCoord);
|
|
|
|
if (texResult.a == 0)
|
|
discard;
|
|
|
|
texResult.a = 0.8;
|
|
FragColor = texResult;
|
|
} |