Reset material. RenderParameters is a class now. Other minor stuff.