Hello,
I've implemented a dither cutout effect and it looks great, but I'm wondering what is the “best” or most performant method for implementing the dithering matrix. I've seen several approaches, each of these i've seen used in a shipped title;
- Sampling a texture for the Bayer matrix
- Procedurally generating the matrix as seen here https://www.shadertoy.com/view/Mlt3z8
- Hardcoded matrix table as seen here in the ScreenDitherToAlpha function.
could someone perhaps explain the benefits and overheads of each method?