# PBRMaterial - dynamically update texture with same image, but different outcome

**URL:** <https://forum.babylonjs.com/t/pbrmaterial-dynamically-update-texture-with-same-image-but-different-outcome/24059>\
**Category:** Questions\
**Tags:** material\
**Created:** [September 24, 2021, 4:32pm UTC](https://forum.babylonjs.com/t/pbrmaterial-dynamically-update-texture-with-same-image-but-different-outcome/24059 "2021-09-24T16:32:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/slin/32/36084_2.png) [@slin](https://forum.babylonjs.com/u/slin)\
**Post date:** [September 24, 2021, 4:32pm UTC](https://forum.babylonjs.com/t/pbrmaterial-dynamically-update-texture-with-same-image-but-different-outcome/24059/1 "2021-09-24T16:32:53Z")

</div>

Hi Babylon team,

I encountered this issue and I don’t know why it happens. It seems to occur on PBRMaterial only. I wasn’t able to reproduce it with dude model which has StandardMaterial.

I created a PG for this problem [https://playground.babylonjs.com/#8IMNBM#267](https://playground.babylonjs.com/#8IMNBM#267)

The imported model has a material with name “Alien”. In the inspector, I can see the albedo texture used for this material is Alien\_baseColor.png. This image is loaded from “[https://playground.babylonjs.com/scenes/Alien/Alien\_baseColor.png](https://playground.babylonjs.com/scenes/Alien/Alien_baseColor.png)”. I update the albedo texture of the Alien PBRMaterial with the same image loaded from this url (line 11 in PG). You can see the mapping is different.

FYI: For the single-colored low-poly style models I used in my project, I rotated the texture image 90 degree clock-wise and the mapping is correct again.

---

<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:** [September 24, 2021, 5:15pm UTC](https://forum.babylonjs.com/t/pbrmaterial-dynamically-update-texture-with-same-image-but-different-outcome/24059/2 "2021-09-24T17:15:42Z")

</div>

Here is your solution: [Available Mesh BoomBox | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#8IMNBM#268)

More specifically:

```auto
mesh.material.albedoTexture = new BABYLON.Texture("https://playground.babylonjs.com/scenes/Alien/Alien_baseColor.png", scene, null, false);

```

By default, a texture is loaded with the invertY set to true
