Recreating the classic Pok├®mon battle-style wipe effectsÔÇöhorizontal, vertical, diagonal, and more. The twist? Instead of writing separate code for each effect, youÔÇÖll learn how to apply them all with a single shader powered by textures.

The Idea Behind the Effect

  • Use a single shader that takes a grayscale texture as a control mask.
  • Each pixelÔÇÖs brightness value determines whether it shows the original color or gets painted black.
  • Adjusting a cutoff value between 0 and 1 creates smooth animated transitions.

Types of Transitions YouÔÇÖll Create

  • Horizontal wipe
  • Vertical wipe
  • Diagonal wipe
  • Closing bars
  • Trapped effect

With just one shader and a set of gradient textures, create dramatic scene transitions, UI effects and storytelling sequences to your own games.

Watch Tutorial