kind parameter in shader(shader, kind) overrides shader type specified
by #define or autodetection using uniforms.