• Niklas Haas's avatar
    shaders: compat for GLSL < 130 · bd502804
    Niklas Haas authored
    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.