Use glm::isnan() everywhere for portable code.