# Precision loss in vertex shader

**URL:** <https://forums.unrealengine.com/t/precision-loss-in-vertex-shader/1218096>\
**Category:** Rendering\
**Tags:** unreal-engine, bug-report\
**Created:** [July 3, 2023, 11:55am UTC](https://forums.unrealengine.com/t/precision-loss-in-vertex-shader/1218096 "2023-07-03T11:55:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fsk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fsk](https://forums.unrealengine.com/u/fsk)\
**Post date:** [July 3, 2023, 11:55am UTC](https://forums.unrealengine.com/t/precision-loss-in-vertex-shader/1218096/1 "2023-07-03T11:55:44Z")

</div>

There is a bug (feature?) in UE5 that reduces the precision of object transforms (rotation, scale) for about an order of magnitude. I have been complaining about this since 5.0 first came out and reported it several times. Since Epic for some reason doesn’t want to list the bug I am posting here about it so that at least other people can be aware of it not waste time trying to figure out what is going on (like me).

I’m mostly posting because I finally found a workaround.

 ![Explanation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/2/ab25d2708984aefb0e5a71068988ed3862e0a6d8.png)  
This image shows the test setup zoomed out.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/8/c28b8845de6308a1700e6aad13670385ba207822.jpeg "Precision loss of object transform in UE5") ](https://www.youtube.com/watch?v=hKPydd0HdwY)

this is UE5(.0,.1,.2) default behavior. The shape is rendered in wireframe and you can see the corner is not where it is supposed to be (where the sphere is)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/7/1778cfae22b6f96fe39691ae9a34b4b0bcc39f65.jpeg "Precision loss workaround") ](https://www.youtube.com/watch?v=AAJPAjvobvU)

This is the same thing but with the workaround applied and the corner is now following the sphere correctly.

 ![workaround material](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/f/4ff728c14970fd132304748728f4bcebc007bf43.jpeg)  
This is what you have to do, to regain the lost precision.

Hopefully this can one day be fixed. Until then if you have meshes big enough to show this problem, you can at least get around it.

Over and out :).

---

_[View the full topic](https://forums.unrealengine.com/t/precision-loss-in-vertex-shader/1218096)._
