equation for calculating texture coordinates when using sliced textures. This became broken in revision 3520.