Texturing is getting applied when we have used direct output to fragment output but when added pbrmetallicroughness error occurs in run time …
Link for material nodes
error:
Uncaught TypeError: Cannot read property ‘getInputByName’ of undefined
at NodeMaterial._restoreConnections (nodeMaterial.js:1028)
at NodeMaterial._restoreConnections (nodeMaterial.js:1033)
at NodeMaterial.loadFromSerialization (nodeMaterial.js:1068)
at XMLHttpRequest.eval (nodeMaterial.js:1145)