# uOffset producing unexpected results in edge

**URL:** <https://forum.babylonjs.com/t/uoffset-producing-unexpected-results-in-edge/9082>\
**Category:** Bugs\
**Created:** [March 9, 2020, 10:35pm UTC](https://forum.babylonjs.com/t/uoffset-producing-unexpected-results-in-edge/9082 "2020-03-09T22:35:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjg](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kjg/32/6635_2.png) [@kjg](https://forum.babylonjs.com/u/kjg)\
**Post date:** [March 9, 2020, 10:35pm UTC](https://forum.babylonjs.com/t/uoffset-producing-unexpected-results-in-edge/9082/1 "2020-03-09T22:35:07Z")

</div>

Here’s a playground demo to illustrate my point:  
[https://playground.babylonjs.com/#VCEUE0#2](https://playground.babylonjs.com/#VCEUE0#2)

On Firefox and Chrome adjusting the uOffset continually has the desired effect, a nice smooth animation. Try it on Edge and each ‘frame’ of the animation will be slightly off, the center will jiggle. This is very strange behavior.

Any idea what could be causing this? I can try other approaches like updating UV’s on the mesh itself, but I just thought it odd that the simplest solution doesn’t work.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 10, 2020, 1:11am UTC](https://forum.babylonjs.com/t/uoffset-producing-unexpected-results-in-edge/9082/2 "2020-03-10T01:11:34Z")

</div>

In WebGL1 (so Edge, Safari, old devices) textures need to be of power of 2 sizes so Babylon remaps it to the closest power of two it can ending up stretching the texture and losing precision on your fetch.

In your case the easiest would be to use a bigger texture with empty space: [https://playground.babylonjs.com/#VCEUE0#6](https://playground.babylonjs.com/#VCEUE0#6)

So you would need to adapt a bit the scale and offset 🙂

---

<div class="post-metadata">

**Author:** ![kjg](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kjg/32/6635_2.png) [@kjg](https://forum.babylonjs.com/u/kjg)\
**Post date:** [March 10, 2020, 1:15am UTC](https://forum.babylonjs.com/t/uoffset-producing-unexpected-results-in-edge/9082/3 "2020-03-10T01:15:04Z")

</div>

I totally forgot about the WeblGL1/2 divide between the browsers, thanks so much!
