Shader compilation error: VERTEX SHADER ERROR: 0:225: 'worldPos' : redefinition

Hello!
I’ve got this error during my way to implement the PBRMetalicRoughness material in nme

It seems like I connected everything required by the shader and I connected them the right way. Don’t know what caused such a behavior

Hello! Yeah that is weird, let me take a look.

1 Like

I would try replacing the LightBlock with the PBRMetallicRoughnessBlock like below for example, instead of trying to use both in the same material. :slight_smile:

2 Likes

Thank you :slight_smile:

1 Like

Yep its a conflict between the Light and PBR blocks Babylon.js Node Material Editor (babylonjs.com), if you can use only one of them it’s good, but we’re looking at a way to eliminate the conflict or at least show a warning that the two blocks are incompatible

2 Likes