Advertisement

Dithering about dithering

Started by November 19, 2021 02:19 PM
0 comments, last by GraphicsMan2021 3 years, 2 months ago

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;

  1. Sampling a texture for the Bayer matrix
  2. Procedurally generating the matrix as seen here https://www.shadertoy.com/view/Mlt3z8
  3. Hardcoded matrix table as seen here in the ScreenDitherToAlpha function.

could someone perhaps explain the benefits and overheads of each method?

This topic is closed to new replies.

Advertisement