GameMaker doesn't have a great way of sharing code between shaders. Fortunately, someone made an extension to do it for us!
Shady:
https://github.com/KeeVeeGames/Shady.gml
https://musnik.itch.io/shady
Functions in shaders:
• Shader Functions - GameMaker Tutorial
Preprocessor macros in shaders:
• Shader Macros - GameMaker Tutorial
Grayscale shaders:
• Grayscale - Shader Effects in GameMaker
Shader playlist:
• Shader Stuff - GameMaker Studio 2
GameMaker 3D playlist:
• 3D in Game Maker Studio 2
GameMaker Studio 2 playlist:
• Game Maker Studio 2 - General Tutorials
0:00 Introduction
0:38 Installing Shady
4:14 The sample project
10:00 Importing functions with Shady
11:04 Dealing with the Project Directory Modified message
11:57 How Shady works
13:22 You can ignore the vsh_mod and fsh_mod files in source control
16:06 Importing macros
18:55 Shader variants
20:41 General code organization advice
22:45 In case your antivirus complains about Shady
23:38 The end
Wishlist Wizarducks on Steam!
https://store.steampowered.com/app/27...
#GameMaker
#GameMakerShaders
- - - -
I've now made that Patreon:
/ wizardragon
That promised social media link spam.
/ dragonitespam
Transition / idle music is by my old friend Kamex:
/ greatgabite
Rate, comment, subscribe, watch more, enjoy!