Files
tbd-station-14/Resources/Textures/Shaders/stencil_mask.swsl
2020-08-29 19:55:16 +01:00

9 lines
235 B
Plaintext

void fragment() {
// Bypasses zTexture because only alpha is queried.
if (texture2D(TEXTURE, UV).a == 0.0) {
discard; // Discard if no alpha so that there's a hole in the stencil buffer.
}
COLOR = vec4(0.0);
}