# How to get the PBRMaterial form the Mesh and update the value;

**URL:** <https://forum.babylonjs.com/t/how-to-get-the-pbrmaterial-form-the-mesh-and-update-the-value/12318>\
**Category:** Questions\
**Tags:** material\
**Created:** [July 8, 2020, 9:52am UTC](https://forum.babylonjs.com/t/how-to-get-the-pbrmaterial-form-the-mesh-and-update-the-value/12318 "2020-07-08T09:52:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [July 8, 2020, 9:52am UTC](https://forum.babylonjs.com/t/how-to-get-the-pbrmaterial-form-the-mesh-and-update-the-value/12318/1 "2020-07-08T09:52:47Z")

</div>

How to get the PBRMaterial form the Mesh and update the value, when i use getRenderingMesh().material will return material not the PBRMaterial. how to get it and PBRMaterail and change the albedo Texture

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 8, 2020, 10:57am UTC](https://forum.babylonjs.com/t/how-to-get-the-pbrmaterial-form-the-mesh-and-update-the-value/12318/2 "2020-07-08T10:57:01Z")

</div>

If the material of your mesh is a PBRMaterial, you do get it when doing `.material`.

So you can simply do `getRenderingMesh().material.albedoTexture = ...`.
