The blockX needs to be floored before converted to int, as float -> integer operations are truncation. (i.e -0.5 -> 0, we want -0.5 -> -1)
17 KiB
17 KiB
The blockX needs to be floored before converted to int, as float -> integer operations are truncation. (i.e -0.5 -> 0, we want -0.5 -> -1)