Editor Overlay¶
The editor overlay lets you write shader code directly on top of the preview canvas. You see the shader output behind the code as you type, so you don't have to switch back and forth between the editor and the preview.
The overlay includes editor features designed to feel similar to the VS Code editor. Due to VS Code limitations, a custom embedded editor is used instead of the native one.

Current Limitations¶
Search inside the editor overlay is currently available in Vim mode with /. Non-Vim overlay search shortcuts are not currently supported; open the shader in the VS Code editor or use browser page search when you need those.
Opening¶
- Click the Editor icon in the toolbar
- Or run Shader Studio: Toggle Editor Overlay from the command palette
Working with Multiple Passes¶
When your shader has multiple passes — Image, BufferA, BufferB, Common, and so on — each appears as a tab along the top of the overlay. Click a tab to switch to that pass. Changes you make are saved back to the file automatically.
Double-click a buffer tab in the config panel to navigate to that pass. The behaviour depends on whether the shader is locked:
Vim Mode¶
If you prefer Vim keybindings, open the options menu while the overlay is enabled and select Vim Mode.
Vim mode supports the standard editing motions provided by the embedded editor, including / search:
| Key | Action |
|---|---|
/ |
Search forward in the overlay |
Next¶
Compile Modes — choose when the shader recompiles