Use a precomputed invmatrix in gi.frag

(General) matrix inversion is costly, it's better if it's done a single
time on cpu. Improve performance.