Injecting face and material data into shader. Porting more to GLSL. Stuck at the limitation of being only allowed to use constant index expressions. Fuuuck youuu, GLSL 1.00.