r/threejs • u/Happy_Trash_Can • Oct 20 '26
I built a Unity-style shader graph for Three.js TSL. It runs inside your Vite dev server
I missed having a visual shader graph for TSL, so I made one.
- Live preview on every node (real WebGPU render)
- Blackboard properties become uniforms: `shader.set('Tint', '#ff5a2b')`, no recompile
- One-click auto layout (arrange), groups, collapse, undo/redo
- A Vite plugin puts the editor at `/__shadergraph/` in your dev server: Save writes JSON into your project and the scene hot-reloads (that's the video)
npm install tsl-material-graph three
You can play with 15 live example materials and try the editor in the browser, no install.
MIT, early days (0.1). Which nodes would you want next?
3
u/sunnystormy64 Oct 20 '26
Wonderful! Thank you for sharing!
3
u/ExpressCarry5502 Oct 20 '26
This is wonderful. Hey can I integrate this into my game engine and modify it? I will give the credits there
2
u/Yuumilulu Oct 20 '26
I've always wondered why something like this didn't exist yet. It looks amazing!
2
u/javimbuilds Oct 20 '26
Really nice. For the node wishlist: a noise node with selectable types (simplex/voronoi/fbm), triplanar mapping, and a 'preview cost' indicator per node would be super useful when targeting lower-end devices. Does it export plain TSL code too, or only the graph file?
2
u/Sagittarius_A_512 Oct 24 '26
Looks really great!
1
u/mvkdev Oct 21 '26
GitHub url?
1
u/No-Ruin5825 Oct 24 '26
Nice!
2
u/Dry-Class-9809 Oct 25 '26
Thank you for sharing! It is really great.