I tested NaN discarding with vertex color mask. I prefer negative number to square root. This should always be NaN. Dividing by zero could be also infinity.