In C4D the xxxx filter was flipped along the UVs.
I looks like this is the problem
// Get the base UV coordinates
vector uv = vector(u, -v, 0);
and it should be
// Get the base UV coordinates
vector uv = vector(u, v, 0);
I am not sure if that fixes it for all DCCs or if some need it as -v