# NodeMaterial Texture UV Scaling bug

**URL:** <https://forum.babylonjs.com/t/nodematerial-texture-uv-scaling-bug/20462>\
**Category:** Bugs\
**Created:** [April 30, 2021, 3:55pm UTC](https://forum.babylonjs.com/t/nodematerial-texture-uv-scaling-bug/20462 "2021-04-30T15:55:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterimg](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@peterimg](https://forum.babylonjs.com/u/peterimg)\
**Post date:** [April 30, 2021, 3:55pm UTC](https://forum.babylonjs.com/t/nodematerial-texture-uv-scaling-bug/20462/1 "2021-04-30T15:55:11Z")

</div>

Hi

I just tried to migrate my app to BabylonJS version 5 and I found a weird bug.

I got NodeMaterial that has texture in it in which I set up Scaling UV with TextureBlok UI. But when the scale is different than 1, I see the error in the console:

> Shader compilation error: FRAGMENT SHADER ERROR: 0:123: ‘tempTextureRead’ : undeclared identifier ERROR: 0:123: ‘rgb’ : field selection requires structure, vector, or interface block on left hand side ERROR: 0:123: ‘=’ : dimension mismatch ERROR: 0:123: ‘=’ : cannot convert from ‘highp float’ to ‘highp 3-component vector of float’

I made a PG demonstrating the bug.

> **[Babylon.js Playground](https://playground.babylonjs.com/#Z4K2QY)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

But also it’s not going away when you just set the value back. You need to reconnect the Texture UV block to make it work back. I made a screen recording to demonstrate this:

But also to avoid this error you can also do just this:

> **[Babylon.js Playground](https://playground.babylonjs.com/#Z4K2QY%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

But this is just not practical and you got UI that is throwing this but it worked in version 4.2.

Regards  
Peter

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 30, 2021, 5:01pm UTC](https://forum.babylonjs.com/t/nodematerial-texture-uv-scaling-bug/20462/2 "2021-04-30T17:01:14Z")

</div>

Let me check that 🙂

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 30, 2021, 5:42pm UTC](https://forum.babylonjs.com/t/nodematerial-texture-uv-scaling-bug/20462/3 "2021-04-30T17:42:01Z")

</div>

Ok it will be fixed with next nightly
