152 std::unordered_map<std::string, std::string> map_out;
154 auto fn_output = [&map_out, path](std::string& path_name,
size_t i, std::string_view tag)
156 if (path_name.empty())
158 auto iter = map_out.find(path_name);
159 if (iter == map_out.end())
162 std::string name = fmt::format(
"{}{}{}.{}", path, tag, i,
fmt);
164 map_out[path_name] = name;
169 path_name = iter->second;
173 for (
auto& iter : _allMaterial)
175 fn_output(iter._pathTexDiffuse, i,
"diffuse#");
176 fn_output(iter._pathTexNormal, i,
"normal#");