Using shaders exported from Node Material Editor

The exported shader code is not really meant to be used directly because it would need a lot of wrapping to be functional. See #include directives in shader code output from Node Material Editor for eg.

What you should do is either exporting the js code, as you did in your PG or use the NodeMaterial.ParseXXX functions: https://playground.babylonjs.com/#JICX85#1

2 Likes