docs · 02
The Studio
Where you build a graph: the canvas of nodes, the picture beside it, and the GLSL code it compiles to.
The Studio is the page where you build. It has three parts:
- The canvas: your graph, cards joined by wires.
- The preview: the picture the graph makes, drawn at full frame rate while you change anything.
- The sidebar, on the left: the Nodes tab lists every node, with Search nodes… at the top and Examples below.
Nodes
A node is one clear idea: a sine wave, a circle, a colour palette, a particle engine. Most nodes show their own small picture on the card, so you can see what each step of the graph does, not only the end.
Each input with no wire is a slider. Each slider has a short hint saying what the setting is and what moving it does.
Wires and types
A wire carries a value from an output to an input. Values have a type, shown by the socket's colour:
- float: one number.
- vec2: two numbers, such as a position (x, y).
- vec3: three numbers, such as a colour (red, green, blue).
- vec4: four numbers, such as a colour with alpha.
A float wired into a vec3 input is copied into all three. A vec2 wired into a vec3 gets a 0 at the end. Other mismatches still connect, and the card shows what it expected, so you can fix it.
Expressions
Any number input can hold a short line of maths instead of a fixed value, such as sin(t) * 0.5. When the maths
needs several named lines, an Expression Block holds them as GLSL.
The code
The whole graph compiles to one GLSL fragment shader. Open it with the Generated code bar under the canvas. Select a card and the lines it adds are marked. Each slider becomes a uniform, a value the shader reads that is the same for every pixel, which is why moving a slider changes the picture without compiling the shader again.