A downloadable asset pack

Buy Now$5.00 USD or more

Lens distortion shader for GameMaker 2022+:

Useful for cool depth effects in your game! Highly recommended for space and racing games.


  • Barrel and Pincushion distortion;
  • Fish-eye distortion;
  • Works on all platforms (Including HTML5 and Mobile);
  • Source project ready-to-use.

Technical support available.

By purchasing, you agree that you may not resell or redistribute the source code in any way (ex: GitHub and Marketplace). The shader can be used commercially in any game or software.

Support my work on Patreon


Buy Now$5.00 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $5 USD. You will get access to the following files:

LensDistortion_Shader.yyz 2 MB

Development log


Log in with itch.io to leave a comment.

(6 edits)

Hey, I'm experiencing a weird artifact with the fisheye distortion on android right in the center. It looks like a tiny box the color of pixels directly behind it, like a single pixel stretched out. Its unaffected by different FOV values and doesn't appear on desktop.


Not even thirty minutes later! I fixed it, adding "precision highp float;" to the top of the fragment shader fixed the issue.

Hey! Oh yeah, Android has a lower precision for shaders, for performance. Thanks for sharing the solution :)