You can try to set glsl_correct_derivatives_after_discard=true, but I don't know if that works with nine.