From 16ac2515e4e6c2d07a6410d6ed8141ba02c7ca4d Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sun, 25 Jun 2023 18:33:47 +0200 Subject: [PATCH] wireworld: normalize time --- Assets/automata/WireWorld/wireworld.shader | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/automata/WireWorld/wireworld.shader b/Assets/automata/WireWorld/wireworld.shader index e1d165f..cf65cee 100644 --- a/Assets/automata/WireWorld/wireworld.shader +++ b/Assets/automata/WireWorld/wireworld.shader @@ -90,7 +90,8 @@ if (t > 0.9) { return float4(0, 0, 0, 1); } - t = t + 0.02; + const float UPS = 4.0; + t = t + UPS / _Time.y ; return float4(t, t, t, 1); }