Fix bilinear interpolation
- Weights were reversed
- Properly wrap at edges of textures (need to wrap all four coordinates, not just the upper left)
- Fix orientation of textures on one side of the cube.