🎉 Add pixel wipe effect

This commit is contained in:
Simon Schneegans
2022-09-02 06:07:48 +02:00
parent 2db13ea884
commit d746344c76
10 changed files with 475 additions and 6 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ void main() {
}
// Progressively hide the spokes.
if (mod(angle * uSpokeCount, 1.0) < progress) {
float threshold = mod(angle * uSpokeCount, 1.0);
if (progress > threshold) {
oColor.a = 0.0;
}