🎉 Add pixel wipe effect
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user