Problem cloning PBRMaterial with iridescence subconfiguration

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.

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?

I see the same problem as well when cloning PBRMaterial using local cube maps for refraction:

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

Actually, it is iridescence which is missing :wink:

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

PR up: Add iridescence configuration to PBR material cloning by carolhmj · Pull Request #13657 · BabylonJS/Babylon.js ( :slight_smile:


Thank you so much for the quick fixes!