I coded a tiny Shaderlab threshold shader for Unity. It just takes greyscale values from pixels and makes them black or white based on if they meet the threshold level.

You can download it here.