Artifacts with Absolute World Position and large map

I’m making a low poly game and used this to set up my materials to use flat shading:

Everything works great but noticed that the further the mesh gets away from the worlds origin point, the more artifacts appear on my mesh:

Close to origin

Far from origin

Notice the black or blurry artifacts

Zoomed in

Does anybody know what’s going on?

Thanks in advance.

Hi! Did you find out what caused the artifacts? I have the same problem with 5.5.
Large world and the further away from origin I place a mesh, it has more artifacts.

@Raisteu @JHarper,

This is likely due to precision loss at high values, since position can only hold 3 32 bit floats (or in the case of Unreal 5+, 3 16 bit floats.)

To fix this, you need to enable large world coordinates in your world position nodes. This system localizes position vectors to greatly expand its limits. However, this system was only introduced in UE5, so you would need to upgrade engines to 5+ for this solution.

Note that this does come at an added performance cost, so only enable this if you are seeing the artefacting.

If you want to read more about LWCs and how they work, take a look at this documentation from Epic: