Polyline Effects
This week the menu was "path-based special effects", aka fun time-wasting with shaders. The reason is because I want to get a steam page going. To make a steam page, I need some sort of trailer (even with alpha features). To make a trailer I need interesting visuals. So, I need to create a few spells and spell effects, as they're always good candidates for showcasing things. By path-based, I mean continuous visual effects (ray, or fire blobs) along a path represented as a polyline, where we could either be moving tile-by-tile, or jump many tiles at once. Some examples below, with associated videos.
There's a single particle system that is used for all these, which spawns quads along the polyline path, and sends them to the shader (alongside path information). The shader uses the path data to figure out how close to the path each pixel is, and set the pixels appropriately. It took me a few tries to create a version general enough to support these 3 effects easily, and obviously it should support many more.