added hash-comments, customfaces introduced

This commit is contained in:
A-lex-Ra
2024-01-08 12:36:04 +06:00
parent f53e45486c
commit 82851fec83
6 changed files with 105 additions and 3 deletions
+10
View File
@@ -23,6 +23,16 @@ ContentGfxCache::ContentGfxCache(const Content* content, Assets* assets) {
sideregions[i * 6 + side] = atlas->get("notfound");
}
}
for (uint side = 0; side < def->textureMoreFaces.size(); side++)
{
std::string tex = def->textureMoreFaces[side];
if (atlas->has(tex)) {
def->customfacesExtraUVs.push_back(atlas->get(tex));
} else {
if (atlas->has("notfound"))
def->customfacesExtraUVs.push_back(atlas->get("notfound"));
}
}
}
}