This shader generates a 4x4 dither pattern and loops it across the texture based off of a standard opacity parameter passed in by a uniform.
Here's a demonstration of the GLSL shader on shadertoy.com https://www.shadertoy.com/view/MtScRd
No need to credit me. If you wanna that's cool but I'm already happy enough to help.
End User Licence Agreement (EULA).