Thank you for the feedback. I used a heavily modified version of this shader so that i could properly use it with 1-bit textures and to make it work on browsers.