Live previews on every node
See what each step of the graph produces, in 2D or on a sphere. Blackboard properties are uniforms: tweak a slider and everything updates without recompiling.
Build TSL materials with nodes, like Unity Shader Graph. Save them as JSON in your project and load them with one line of code.
The editor runs inside your own dev server: press Save and your scene updates instantly.
A complete node editor for TSL, plus a tiny runtime. No shader code to write, no build step to configure.
See what each step of the graph produces, in 2D or on a sphere. Blackboard properties are uniforms: tweak a slider and everything updates without recompiling.
A layered layout lines the graph up in columns, minimizes crossings and routes long connections through free lanes.
Drop a connection on empty space, type a name, press Enter: the node is created and connected. Groups, collapse, copy/paste and undo included.
The material is compiled with the real Three.js renderer (WebGL2 fallback). Invalid shaders are caught and reported, the preview keeps the last good one.
Works with any Vite project. Not using Vite? Run npx tsl-material-graph instead.
npm install tsl-material-graph three
import { shaderGraph } from 'tsl-material-graph/vite'; // vite.config.ts plugins: [shaderGraph({ dir: 'src/shaders' })]
Open localhost:5173/__shadergraph/, save, then:
const shader = createShaderGraphMaterial(graph); mesh.material = shader.material; shader.set('Tint', '#ff5a2b');
Free and open source (MIT). Requires Three.js r186 or later.