Make ngl compile each shader three times. Once with #define NO_CLIP 1 once with #define RECT_CLIP 1 and once as before.