copy mainPass properties when cloning the material
bugfix : material switch was not always handled when shader was the same