calculate texture coordinates