Getting started

Your first shader

Create a shader from a template, change it and watch it run.

Five minutes and one folder are enough.

Create it

Right-click a folder in the explorer, then New… > Shader…. Or choose File > New > Shader (Cmd+N): the shader is made in the selected folder.

Studio asks which template to start from (see Shader templates). Pick Generator if unsure: it draws something straight away. Type a name, press Enter, and the shader opens in a tab.

Look around

Three things matter right now:

  • the preview at the top, where the shader runs;
  • the code below it, with the ISF header at the top and main() underneath;
  • the controls to the right of the code: one per input the shader declares.

Change something

Move a slider: the picture follows. Change a number in the code: the picture follows that too. Introduce an error on purpose: the Console (top left) tells you what and where, and sometimes offers a Fix button. See The console.

Give it an input

A shader with no inputs always draws the same picture. In the inspector on the right, open Inputs and press +, or write the input in the header by hand. It appears in the controls at once. When a value pleases you, Save as defaults keeps it.

Complete Metadata

In the inspector on the right, open Metadata and fill in the fields. This information helps you and others understand what the shader does and who made it.

Save it

Cmd+S. The tab's modified dot disappears. Closing a tab that has changes asks for confirmation first.