fix: update canvas real-time

This commit is contained in:
Beriff
2026-03-10 17:19:50 +07:00
parent 1d168f7be4
commit 64dd2d6e40
7 changed files with 29 additions and 10 deletions

View File

@@ -26,11 +26,11 @@ void main()
float gap_length = 0.015;
float total = dash_length + gap_length;
float speed = 1.8;
float speed = 0.3;
float distance_along = (vPos.x + vPos.y) * 20.0;
float t = mod(distance_along * total, total);
float t = mod( distance_along * total + uTime * speed, total);
if (t < dash_length)
FragColor = uColor2;