Experience precise, pixel-perfect glitch effects tailored for pixel art games! This shader is designed to provide minimalistic, straightforward implementation while offering full control over distortion and chromatic aberration. It's incredibly easy to integrate into your GameMaker Studio 2 projects.

Features:

  • Pixel-Accurate: This shader works exactly on a per-pixel level, ensuring your glitches stay sharp and true to your pixel art style.
  • Simple & Minimalist: Designed for effortless use. You can quickly add glitch effects to your project with a config script that will help you set up the shader.
  • Noise Sprite Control: The shader utilizes a noise sprite to generate the glitch effect.

Explanation:

At the top of this page, try the demo to see the shader in action.

In the top-left corner of the demo, you'll see the noise sprite. For the most part it's controlling distortion: white pixels = shift left, black pixels = shift right, pixel opacity controls distortion intensity (more opasity = more intensity). Last row of noise sprite controls chromatic aberration intensity: whiter pixels = more aberration, blacker pixels = less. You can try different noise examples by using the arrow buttons above noise. 

You can also adjust parameters like shader speed, distortion and aberration multipliers in bottom left corner. A distortion multiplier of 1 means that with full noise opacity, the distortion will shift by exactly one pixel. An aberration multiplier of 1 means that with fully white noise (or fully transparent), the aberration will also shift by exactly one pixel.

Plus, there’s an option to import your own image in the bottom-right corner, but it's available only in the downloadable version of the demo due to HTML5 limitations.

Important to know:

If you want to use the shader in your game:

  1. Ensure the "Separate texture page" option is checked for both the sprite you’re applying the shader to and the noise sprite (not needed if used on a surface).
  2. Make sure the sprite or surface you’re applying the shader to has extra space on the left and right sides, or the shader will clip at the edges (the import button in the demo automatically handles this for you).

Like the Shader?

If you enjoy using this glitch shader and find it useful, consider supporting me! Payment is optional, but credits are appreciated (you don't have to if you’ve paid for it). I’d also love to hear about your project using my shader, just out of curiosity.

Published 21 days ago
StatusReleased
CategoryAssets
AuthorDuckymite
Made withGameMaker
Tags2D, Effects, GameMaker, glitch, Pixel Art, Shaders
Average sessionA few minutes

Download

Download NowName your own price

Click download now to get access to the following files:

Pixel Glitch Shader Demo.zip 4.3 MB
Pixel Glitch Shader.yymps 5.7 kB
Pixel Glitch Shader.yyz 184 kB

Leave a comment

Log in with itch.io to leave a comment.