• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Shaders Awesome Shaders (Advanced)

Tyg

Member
I have converted 4 of Martijn Steinrucken aka BigWings beautiful shaders for gamemaker
To show the potential

They have a sharealike creative common licence and you need to contact the author before using them in a commercial product
I suggest watching his youtube tutorial for the drive home, great learning experience :)

Making of the Drive Home tutorial:

Authors contact:
Email: [email protected]
Twitter: @The_ArtOfCode
YouTube: youtube.com/TheArtOfCodeIsCool


left click to maximize shader and right click to minimize
 

Tyg

Member
ill try to explain a little about the conversion
You should understand shaders and how uv's work, to center and scale them, alot of shadertoys shaders you may have to flip the y of the uv
uv.y = -uv.y moving a uv can be done with uv += .5 or uv.x -= somevalue, scaleing is done with uv *= 2.; (smaller) uv/= 2.; (larger)
and use gamemakers syntax like gl_fragcoord, when you see uv=iresoulution.x/iresolution.y; you can substitue it for uv=v_vTexcoord;
also Gamemaker uses gm_basetexture which is the objects sprite (basically ichannel0) doing stuff like the "Bokeh" effect
are done using the uv coordinates but not the texture. So if you understand that before watching the tutorial it helps alot as it involves
some pretty serious math :)

HeartFelt shader is almost working, just got to tweak the smoothstep a bit

screenshot.jpg
 
Last edited:
Top