Fixing texture tiling thanks to my own ingenuity