hughsk

hughsk/glsl-dither

Bayer matrix dithering in GLSL

C
220
11
Other

glsl-dither is a GLSL library that provides functions for applying Bayer matrix dithering to images using 2x2, 4x4, or 8x8 matrices. It's designed for developers working with WebGL or OpenGL shaders who need to reduce color depth in graphics applications. The library offers three dithering functions that take pixel position and brightness as inputs, making it useful for creating retro-style graphics or optimizing rendering performance.

Total donated
Undistributed
Share with your subscribers: