The preview on the right is drawn offscreen from the shader's own GLSL (Studio translates it for the Mac's GPU and supplies GameMaker's built-ins: the matrices, the base texture and the vertex layout). 2D shaders draw on a sprite, post-processing shaders on a landscape, 3D shaders on a model (the skinned ones on a bending figure).
- Play / Pause (Space) runs the shader's animation (anything that uses time).
- Each setting has a slider, a colour well or, for lists of numbers such as light positions, a text field. Changes show at once.
- Reset (⌥⇧R) puts every setting back to the library's default.
- For 3D shaders the slider beside Reset turns the camera round the model.
Use these settings (beside Add to Project, when the helper script is on and a setting differs from the library's; Art > Shader > Helper Defaults from Preview ⌥⇧⌘H) writes the settings you tried as the helper's defaults, so shd_<name>_set() with no arguments looks like the preview. Settings are kept to each slider's range; time, sizes and the sprite's place on its texture page are still worked out by the helper. Turn it off to keep the library's defaults.
Alpha shaders (Alpha Cutoff, Premultiply) preview on soft-edged text so their effect shows; some defaults were raised in the polish pass (Ripple, Dizzy, Oil Paint, both Heat Hazes, Float and Bob) so the preview shows the effect plainly.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.