Files
tbd-station-14/Resources/Shaders/stencil_mask.swsl
Víctor Aguilera Puerto 69ca8c2153 Some YAML cleanup (#840)
2020-04-22 17:50:55 +02:00

8 lines
173 B
Plaintext

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);
}