I have been being have same head-ache.
All matrices such like bone matrix palette and parameters such as lighting and so on must be set every shader changes. This extra and waste process is going...