# Change the emissive texture of an material

**URL:** <https://forum.babylonjs.com/t/change-the-emissive-texture-of-an-material/30019>\
**Category:** Questions\
**Created:** [May 4, 2022, 3:09pm UTC](https://forum.babylonjs.com/t/change-the-emissive-texture-of-an-material/30019 "2022-05-04T15:09:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoPaulD](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leopauld/32/16772_2.png) [@LeoPaulD](https://forum.babylonjs.com/u/LeoPaulD)\
**Post date:** [May 4, 2022, 3:09pm UTC](https://forum.babylonjs.com/t/change-the-emissive-texture-of-an-material/30019/1 "2022-05-04T15:09:41Z")

</div>

Hello I would like to change the emissive texture of a material but when I make this change by the code through this [PLAYGROUND] ([https://playground.babylonjs.com/#7QCYPB#68](https://playground.babylonjs.com/#7QCYPB#68)), the texture applies any way… Whereas if I change my texture manually with the inspector and I take the same texture in my computer, the texture applies perfectly

My problem :

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/d/1d0cecf08c1484b0d258769a487b6e7f337f42f8.jpeg)

The result if I change my emissive in the babylon inspector :

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/d/4d4fcb87cc1b47056c746b30bc42c4f6f8660f40.jpeg)

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [May 4, 2022, 3:48pm UTC](https://forum.babylonjs.com/t/change-the-emissive-texture-of-an-material/30019/2 "2022-05-04T15:48:00Z")

</div>

You need to invert texture (vScale) when applying, in GLB model it is done automatically.

```auto
LightMat.emissiveTexture.vScale = -1; 

```

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/b/6bc8937e36cc1e32942417f2a01b414b76173ef1.jpeg)

Example - [https://playground.babylonjs.com/#7QCYPB#70](https://playground.babylonjs.com/#7QCYPB#70)

---

<div class="post-metadata">

**Author:** ![LeoPaulD](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leopauld/32/16772_2.png) [@LeoPaulD](https://forum.babylonjs.com/u/LeoPaulD)\
**Post date:** [May 4, 2022, 7:37pm UTC](https://forum.babylonjs.com/t/change-the-emissive-texture-of-an-material/30019/3 "2022-05-04T19:37:21Z")

</div>

Thanks a lot, I had made a guess on a similar principle and to test I had mirrored my image in photoshop. So it was kind of the idea to reverse it but I didn’t use the right idea.
