Update Healer Man server

This commit is contained in:
phenom committed 2026-10-06 22:25:34 -04:00
1 parent 6114a2295f
commit 69809f7228
593 files changed
+903643 -40774

No files matched your search

@@ -0,0 +1,22 @@
export function preparedAlphaTextureFilename(imageName) {
const name = String(imageName ?? "");
return /\.png$/iu.test(name) ? name : `${name}.png`;
}
function normalizedRole(role) {
if (role === "cutout" || role === "mask") return "mask";
if (role === "blend" || role === "additive") return "blend";
return role;
}
export function alphaSemanticRolesMatch(expectedRole, actualRole) {
return normalizedRole(expectedRole) === normalizedRole(actualRole);
}
export function effectiveAlphaMaterialRole(semanticRole, alphaMode) {
return semanticRole ?? (alphaMode === "OPAQUE" ? "opaque" : "missing");
}
export function alphaMaterialMatches(expectedAlphaMode, expectedRole, actualAlphaMode, actualRole) {
return expectedAlphaMode === actualAlphaMode && alphaSemanticRolesMatch(expectedRole, actualRole);
}