Discuss Scratch

Quantum-Cat
Scratcher
1000+ posts

How are the fisheye and whirl effects produced?

What is the code or mathematical function that is applied on sprites to generate each of the fisheye and whirl effects in Scratch?
BigNate469
Scratcher
1000+ posts

How are the fisheye and whirl effects produced?

I don't really know the exact algorithm used, but you can look at the fragment shader used to apply the effect to a sprite and try to figure it out from there.

Powered by DjangoBB