Files
OldThink/Resources/Textures/Shaders/stencil_mask.swsl

8 lines
173 B
Plaintext
Raw Normal View History

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