make getMaterialIndex function configurable
0.0.4