NME 'SimplexPerlin3D' : syntax error

if i save a nme material as json and then load it via nodematerial.loadasync inside the playground, i get the following error:

logger.ts:83 BJS - [21:04:13]: Error: FRAGMENT SHADER ERROR: 0:15: ‘SimplexPerlin3D’ : syntax error

(it works fine if i generate the javascript code inside the nme and manually paste the code inside the playground)
(it also works if i save and then load the json inside the nme again)

reproduce:

  1. export json from https://nme.babylonjs.com/#JNQ200#14
  2. open the following playground: https://www.babylonjs-playground.com/#9BKDIN#1
  3. open nme of the material
  4. inside nme load json file from step 1 (works correctly)
  5. go back to playground -> error in console

Pinging @Pryme8 who kindly created the Simplex node

Well actually I spotted the error :slight_smile: will fix it

1 Like

What was it? So that way I can make sure its fixed on the other node.

1 Like

It was that when calling the emitFunction you have to set the comments parameter with a string starting with “//” :slight_smile:

1 Like

I fixed both nodes

1 Like

thank you