Seeing #15 I have to ask this question, was this ever tested? For others getting here from google: use https://github.com/stackgl/glsl-inverse/blob/master/index.glsl it works.