16 lines
218 B
Forth
16 lines
218 B
Forth
|
#version 330 core
|
||
|
out vec4 FragColor;
|
||
|
|
||
|
in vec2 TexCoord;
|
||
|
|
||
|
// texture samplers
|
||
|
uniform sampler2D texture1;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vec4 pixel = texture(texture1, TexCoord);
|
||
|
if(pixel.a == 0){
|
||
|
discard;
|
||
|
}
|
||
|
FragColor = pixel;
|
||
|
}
|