Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

Going into some detail about how the pixel outline shader works. There's not a lot of code in this one, which I shared directly on twitter yesterday:

https://twitter.com/shaunspalding/status/880070685153951744

publicly released tomorrow but feel free to share =)

Platformer stuff continues next week as discussed before!

-S

Files

Previews only

GameMaker Studio 2: Outline Shader Tutorial

(GMS1.x Compatible) Best used with pixel art, unsure how this would particularly look with anti-aliased sprites but probably not great. ▶ Support my work: https://www.patreon.com/shaunjs ▶ Intro to shaders: https://www.youtube.com/watch?v=oK3R2aMq9tM Lots of new patrons recently which is exciting! Please keep in mind I update credits for new videos and give out rewards at the start of each month in order to combat scammers.

Comments

Raeldor

Mmm I get a weird error on the fragment shader, but the code is correct, it says " Fragment Shader: shaderOutline at line 19 : '+' " " Fragment Shader: shaderOutline at line 19 : ' ' " weird, I even erased those lines, and nothing was on line 19 and still got those errors at the same line, I cleared the cache too just in case.

shaunjs

Shaders are compiled in a different language to GML, they're GLSL and it is much more strict. You need every line properly ended with semi colons. Other than that to check I'm not sure what to advise without seeing for myself :(