shaders: compat for GLSL < 130
We need to use the explicitly named functions like texture2D(), texture3D() etc. for low GLSL versions. Add a bunch of shitty compatibility code to template out the function name. The specific way I solved it also opens us up to allowing e.g. rectangle textures in the future.
Showing with 71 additions and 44 deletions