Simsure
banner
simsure.bsky.social
Simsure
@simsure.bsky.social
And the final touch is making this render three times, tweaking the uniforms to have smaller, faster and more transparent foam under the main one
August 7, 2025 at 5:59 PM
The actual color comes not from the shader but from the background texture, you can see how it gives a much better look.

The shader could be modified to make it darker the center, this is just how we did it in our game.
August 7, 2025 at 5:59 PM
The result
August 7, 2025 at 5:59 PM
The final steps consist in removing transparent pixels to have a opaque foam, (thanks to the previous step we have a perfect circle and not a square)

With some final inversion and multiplication we get a single float value of our swirling foam, fading as it goes to the center
August 7, 2025 at 5:59 PM
The result
August 7, 2025 at 5:59 PM
Now using the polarColor.r from before we generate a fading circle image, that will be used to make the edge of the whirlpool blend with the surroundings.
Get the final image by multiplying the inverted circle with the inverted image from the last step
August 7, 2025 at 5:59 PM
The result
August 7, 2025 at 5:59 PM
With a step function let's get only the white "foam" form the rotating noise image
August 7, 2025 at 5:59 PM
The result, we can already see the whirlpoolness
August 7, 2025 at 5:59 PM
Now we use a noise texture to sample the image that will be the canvas for our whirlpool,
i used a generic noise image (cloud like) found online.

The UV to use for sampling are based on the polar coordinates after some passes.
August 7, 2025 at 5:59 PM
The result
August 7, 2025 at 5:59 PM
The starting point is a polar coordinate texture, we use this custom function found online that i changed a bit to make it work correctly in GMS
August 7, 2025 at 5:59 PM
Here's a little #tutorial for the whirlpool #shader we used in Whirloop.🌀

𝐏𝐫𝐞𝐦𝐢𝐬𝐞: it was made pretty fast for a game jam, it can probably be way more optimized and clean, i just fixed it a bit for this tutorial

👇🧵
August 7, 2025 at 5:59 PM
The magic of sprite stacking.

#GMTK2025 #gmtkjam #spritestack
August 6, 2025 at 3:23 PM
A simple trick in Whirloop to give the illusion of water around objects.

itch.io/jam/gmtk-202...
pixeltentacles.itch.io/whirloop

#GMTKJam #GMTK2025 #spritestack #loop
August 5, 2025 at 4:28 PM
Me an Wah made this little game for the #GMTKJam
You can try and rate it on the jam page.
Has been fun i'm really happy with the final result of just two days of work.

itch.io/jam/gmtk-202...
pixeltentacles.itch.io/whirloop

#GMTK2025 #spritestack #loop
August 4, 2025 at 4:26 PM