mreinstein / cobalt

WebGpu 2D renderer
MIT License
8 stars 1 forks source link

consider a gui for the render graph #5

Open mreinstein opened 1 year ago

mreinstein commented 1 year ago

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)
mreinstein commented 1 year ago
nice_looking_node_graph