2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-07-03 14:28:07 +00:00

fix: t6 modman textures (#849)

* feat: dynamically decompress bc5 textures for modman

* chore: restructure image format class

* chore: keep dds file conversions

* chore: convert all kinds of webgl unsupported formats

* chore: add decompressors for remaining formats

* chore: always set full alpha if available on bc4 and bc5 decompression
This commit is contained in:
Jan
2026-06-22 07:02:35 +02:00
committed by GitHub
parent 087ce0c208
commit 255c424aac
28 changed files with 2373 additions and 237 deletions
+7 -1
View File
@@ -73,10 +73,16 @@ namespace
return false;
}
const auto loadResult = image::LoadIwi(file);
auto loadResult = image::LoadIwi(file);
if (!loadResult)
return false;
auto texture(std::move(loadResult->m_texture));
auto convertedTexture = ConvertTextureForDdsFileOutputIfNecessary(texture.get());
if (convertedTexture)
texture = std::move(convertedTexture);
auto outPath = iwiPath;
outPath.replace_extension(".dds");