🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Dithering about dithering

Started by
0 comments, last by GraphicsMan2021 2 years, 7 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