This 2018 WebGL fragment shader (src/alphadither.fx) is a modified version of a shader for use in the Construct 2 game engine, generated for the 3x IGF nominated game Hypnospace Outlaw (Steam).
Based on input dither value (and optionally on existing alpha value of the pixel) this shader adjusts the alpha value of virtual pixels to output various dither patterns of varying "transparency."
