Transforming input to tiling coordinates seems to work now.