Shaders
Shader templates
The starting points when you create a shader.
New… > Shader… asks which template to start from.

| Template | Starts you with |
|---|---|
| Empty | A header with no inputs and a main() that paints everything transparent black. A new empty pipeline is the same: nothing is wired to its output. |
| Generator | Diagonal waves that move between two colors, with scale, speed and the two colors as inputs. It draws by itself, so you see something at once. |
| Filter | A duotone: an image input, a color for the shadows and one for the highlights, and an amount to mix it with the original. |
| Transition | A wipe from left to right: a start image, an end image, a progress input and a softness for the edge. |
| Blend | A base image, a blend image and an opacity, with a blend function included. |
Each one is short, on purpose: a few lines of GLSL, or a dozen nodes. The pipeline of a template does exactly what the shader of the same name does, so you can open both and see how the code and the nodes tell the same thing. A Transition or a Blend shows nothing until you give each image input a picture in the input controls.
Press Enter to validate. Tick Do not show again and your choice becomes the default: the next new shaders skip the question. You can still start from another template by copying a shader you like.