A simple JavaScript shader (not really) that uses dithering for overlap:
JavaScript dithering shader.