add balloon pop rainbow

This commit is contained in:
Anthony Samms
2025-09-08 17:54:32 -04:00
parent f80dc77455
commit ffa0005f6b
4 changed files with 49 additions and 9 deletions

16
shader/mask.fs Normal file
View 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);
}
}