Implement female uniform masking.
This commit is contained in:
3
Resources/Shaders/stencilclear.swsl
Normal file
3
Resources/Shaders/stencilclear.swsl
Normal file
@@ -0,0 +1,3 @@
|
||||
void fragment() {
|
||||
COLOR = vec4(0);
|
||||
}
|
||||
7
Resources/Shaders/stencilmask.swsl
Normal file
7
Resources/Shaders/stencilmask.swsl
Normal file
@@ -0,0 +1,7 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user