Node Material, compilation error with Iridescence Block

I am trying to add an IridescenceBlock to the PBRMetallicRoughness setup here: https://nme.babylonjs.com/#EPY8BV#6 (this is linked from here)

If I drag the iridescene input to the left, I immediately get this error: "Shader compilation error: FRAGMENT SHADER ERROR: 0:920: ‘vClearCoatParams’ : undeclared identifier ERROR: 0:920: ‘x’ : field selection requires structure, vector, or interface block on left hand side "

Note the error seems to related to ClearCoat, but this is only a problem when I try and add an IridescenceBlock.

Is this a bug?

Thank you.

@Deltakosh , this looks like a but in the Node Material editor.

Cc @Evgeni_Popov who owns these nodes

This PR will fix the problem:

4 Likes