Files

9 lines
235 B
Plaintext
Raw Permalink Normal View History

2020-01-21 18:11:15 +01:00
void fragment() {
// Bypasses zTexture because only alpha is queried.
if (texture2D(TEXTURE, UV).a == 0.0) {
2020-01-21 18:11:15 +01:00
discard; // Discard if no alpha so that there's a hole in the stencil buffer.
}
COLOR = vec4(0.0);
2020-01-21 18:11:15 +01:00
}