using thrust remove_if for compaction, added antialias. todo: importance sampling