use glm::isnan() everywhere for portable code