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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user