A shader can be drawn as a graph of nodes instead of typed GLSL. Create > New Shader Graph ▸ (also Art > Shader) makes a new shader asset from a ready graph; on a shader you have open, Art > Shader > New Graph from Template ▸ replaces its code with one (Edit > Undo puts the code back).
- Graph / Code (⌥⇧G) switches between the graph and the GLSL it writes.
- The graph is kept beside the project in
.studio/shadergraph/<shader>.json. GameMaker never reads it: the.vshand.fshthe graph writes are what your game builds with, so the project opens and builds in GameMaker as it is. - Save (⌘S) writes the shader's
.vsh,.fshand the graph. The code uses GameMaker's own names (in_Position,in_Colour,in_TextureCoord,gm_Matrices,gm_BaseTexture,v_vTexcoord,v_vColour) and is checked by the portability checker as you work (Problems on the right). - Renaming or deleting the shader in the asset list takes its graph along.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.