Dissolve effect for sprites

This is an example of implementing the dissolve effect for sprites for the Defold game engine.

example

Asset uses the new resource.get_atlas api and others to get sprite position data in atlases. So I managed to make an effect for a 2D sprite that requires sampling colours from other textures - noise and ramp.

More info in the repo → https://github.com/indiesoftby/defold-dissolve-fx

Online demo → :fire: dissolve_fx_demo 1.0 :fire:

24 Likes

A small update:

  • The project has been updated to Defold 1.6.1 (no longer works with earlier versions due to a breaking fix in vertex attributes).
  • Added the scale mode option for the noise texture: stretch (default), cover. With cover the fx has proper aspect ratio on non-square sprites.
10 Likes