![Outline shader - [Game Maker Studio 2 | Epic]](/images/yt/hr/outline-shader-game-maker-studio-2-epic-fb6g3.jpg)
Outline shader - [Game Maker Studio 2 | Epic]
This epic video tutorial shows you how to make an outline on a given sprite with a shader in GameMaker Studio.
Idea behind the whole procedure is quite simply. Take the area of the sprite which is transparent. There we have 4 checks. Each check checks if there is one unit (one texel) to the left/right/bottom/up from the current position an texel that isn't transparent. If that is the case draw on this empty space a colored pixel.
Outline shader "original" code: by GameMaker Casts
https://www.youtube.com/watch?v=3CjdkRid5dA
Free outline (from this video) shader code found here:
https://www.patreon.com/posts/outline-shader-42396444
Shader basics:
www.youtube.com/watch?v=tKnO2kMWUOY
Texture page:
www.youtube.com/watch?v=DBrGo0YFla0
▶ Gamemaker Studio: https://www.yoyogames.com/get
▶ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations
🎮 My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls
💓 My assets:
Get some assets at itch.io https://1up-indie2.itch.io/
📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/?referralCode=6AB816C3B321FB60C885
👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie
Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
📜 Udemy: incoming