mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
add balloon pop rainbow
This commit is contained in:
16
shader/mask.fs
Normal file
16
shader/mask.fs
Normal file
@@ -0,0 +1,16 @@
|
||||
#version 330
|
||||
in vec2 fragTexCoord;
|
||||
out vec4 fragColor;
|
||||
uniform sampler2D texture0;
|
||||
uniform sampler2D texture1;
|
||||
|
||||
void main() {
|
||||
vec4 maskColor = texture(texture0, fragTexCoord);
|
||||
vec4 rainbowColor = texture(texture1, fragTexCoord);
|
||||
|
||||
if (maskColor.a > 0.0) {
|
||||
fragColor = rainbowColor;
|
||||
} else {
|
||||
fragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user