cubeplanes added manually - rotate in glm introduces floating imprecission - therefore distance function wouldn't work