add render layer for particles, correct cleaning of material in destructor