Setting up a cobalt node graph is essentially just data. It would be more intuitive to be able to drag n' drop these nodes onto a scrollpane and link them, much like many other shader graph systems out there (unity, unreal, etc.)
We could expose some new API call that would accept an object/string as input, something like:
const c = Cobalt.init(canvas, viewportWidth, viewportHeight)
const graph = '....' // whatever cobalt node data looks like
Cobalt.import(c, graph)
Setting up a cobalt node graph is essentially just data. It would be more intuitive to be able to drag n' drop these nodes onto a scrollpane and link them, much like many other shader graph systems out there (unity, unreal, etc.)
We could expose some new API call that would accept an object/string as input, something like: