Fixed the bug where cube geometry had messed up texturing.

It’s because during the calculation of uv coords, I forgot to do everything in float.