I’d like to know the best way of using a custom shader created in the babylon node editor (https://nme.babylonjs.com/).
When pressing Export Shader I get glsl which is great, but how do you use this in your code?
When using the code from the example here https://www.babylonjs-playground.com/#1OH09K#131 it runs just fine in my project, but the output from the node editor comes in a different form. This again is somewhat dirty and hard to manage.
I’d like to have the shader code in a separate file and only call on it with a few lines whenever I need to create the material. I tried this method which was mentioned in the docs, but the material just doesn’t display at all. There are no error messages either.
This is the shader I divided into two different files (Babylon.js Node Material Editor)