summaryrefslogtreecommitdiffstats
path: root/atrix256.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'atrix256.cginc')
-rw-r--r--atrix256.cginc4
1 files changed, 2 insertions, 2 deletions
diff --git a/atrix256.cginc b/atrix256.cginc
index 3eb164c..ccdc750 100644
--- a/atrix256.cginc
+++ b/atrix256.cginc
@@ -33,8 +33,8 @@ float ign(float2 screen_px) {
0.00583715 * screen_px.y, 1), 1);
}
-float ign_anim(float2 screen_px) {
- float frame = frac(_Time[0]*.0005) * 64;
+float ign_anim(float2 screen_px, float frame, float speed) {
+ frame = fmod(frame * speed, 64);
return ign(screen_px + frame * 5.588238f);
}