15 lines
179 B
Plaintext
15 lines
179 B
Plaintext
in vec4 Color;
|
|
|
|
uniform float alphaRef;
|
|
uniform UBOOL alphaTest;
|
|
|
|
OUTPUT
|
|
|
|
void main() {
|
|
outColor = Color;
|
|
|
|
if (UBOOL_TEST(alphaTest) && outColor.a < alphaRef) {
|
|
discard;
|
|
}
|
|
}
|