Merge MAT_* with shadertype
Set normal map and detail map in material.cpp
Fix material detection
Improve debug msg