GLES2: Content shader stuff (possibly unfinished)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
void fragment() {
|
||||
if (texture(TEXTURE, UV).a == 0) {
|
||||
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);
|
||||
COLOR = vec4(0.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user