diff --git a/Assets/automata/wireworld.shader b/Assets/automata/wireworld.shader index a75676b..7141105 100644 --- a/Assets/automata/wireworld.shader +++ b/Assets/automata/wireworld.shader @@ -82,8 +82,8 @@ const float d = 1.0/resolution; float t = tex2D(_LastFrame, 0).r; - if (i.uv.x < 0.01 && i.uv.y < 0.01) { - if (t > 0.9){ + if (i.uv.x < d && i.uv.y < d) { + if (t > 0.9) { return float4(0, 0, 0, 1); } t = t + 0.02;