Feature-based control of visibility error: a multi-resolution clustering algorithm for global illumination