new class MaterialDiscardController, it can discard a material that is
lost