Fixed an issue when looking up texture map indices when the texture map resolution was greater than 1
Fixed an issue when interpolating between textures