JungleOpenSourceProjectDemo.../res/demo.fs

16 lines
218 B
Forth
Raw Normal View History

2024-04-26 22:14:41 +08:00
#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;
}