group materials together when rendering models
handle case of meshes with multiple parts with different materials better, don't mix them in with single material meshes
Merge pull request #3606 from ZappoMan/groupMaterialsRendering

More Model::render() improvements