# Problem cloning PBRMaterial with iridescence subconfiguration

**URL:** https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240
**Category:** Questions
**Created:** [March 22, 2023, 2:26am UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240 "2023-03-22T02:26:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![brittany](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@brittany](https://forum.babylonjs.com/u/brittany)
#### Post date: [March 22, 2023, 2:26am UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240/1 "2023-03-22T02:26:52Z")

</div>

I am trying to instantiate a model that has a PBRMaterial with iridescence. For some reason, the iridescence subconfiguration is not cloned even though I have `cloneMaterials = true`.

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

Here you can see the original sphere on the left with iridescence, and the instantiated sphere on the right without it.

Is there another setting or option to make sure these subconfigurations are also cloned?

---

<div class="post-metadata">

### Author: ![brittany](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@brittany](https://forum.babylonjs.com/u/brittany)
#### Post date: [March 22, 2023, 2:45am UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240/2 "2023-03-22T02:45:46Z")

</div>

I see the same problem as well when cloning PBRMaterial using local cube maps for refraction: [https://playground.babylonjs.com/#DY96Q2#1](https://playground.babylonjs.com/#DY96Q2#1)

---

<div class="post-metadata">

### Author: ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)
#### Post date: [March 22, 2023, 12:25pm UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240/3 "2023-03-22T12:25:44Z")

</div>

Hello! Indeed anisotropy was missing from the clone method, thanks for the report, I’m working on a fix 😃

---

<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: [March 22, 2023, 12:30pm UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240/4 "2023-03-22T12:30:08Z")

</div>

> [@carolhmj](#):
>
> Indeed anisotropy was missing from the clone method

Actually, it is `iridescence` which is missing 😉

---

<div class="post-metadata">

### Author: ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)
#### Post date: [March 22, 2023, 12:31pm UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240/5 "2023-03-22T12:31:23Z")

</div>

Ooops, I was thinking of that but wrote the wrong word, guess I haven’t woken up fully yet 🤣

---

<div class="post-metadata">

### Author: ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)
#### Post date: [March 22, 2023, 12:49pm UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240/6 "2023-03-22T12:49:02Z")

</div>

PR up: [Add iridescence configuration to PBR material cloning by carolhmj · Pull Request #13657 · BabylonJS/Babylon.js (github.com)](https://github.com/BabylonJS/Babylon.js/pull/13657) 🙂

---

<div class="post-metadata">

### Author: ![brittany](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@brittany](https://forum.babylonjs.com/u/brittany)
#### Post date: [March 22, 2023, 3:06pm UTC](https://forum.babylonjs.com/t/problem-cloning-pbrmaterial-with-iridescence-subconfiguration/39240/7 "2023-03-22T15:06:58Z")

</div>

Thank you so much for the quick fixes!
