JungleOpenSourceProjectDemo.../res/demo.fs

17 lines
219 B
Forth
Raw Permalink 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;
2024-04-29 21:06:15 +08:00
}