(DDS): added DXT3 decoder.

This commit is contained in:
morkt
2018-01-22 21:04:06 +04:00
parent b7c32d48f0
commit 96729d8961
2 changed files with 50 additions and 0 deletions

View File

@@ -109,6 +109,12 @@ namespace GameRes.Formats.DirectDraw
var dxt = new DxtDecoder (input, meta);
pixels = dxt.UnpackDXT5();
}
else if ("DXT3" == meta.FourCC)
{
var input = stream.ReadBytes ((int)meta.Width * (int)meta.Height);
var dxt = new DxtDecoder (input, meta);
pixels = dxt.UnpackDXT3();
}
else if ("DXT1" == meta.FourCC)
{
var input = stream.ReadBytes ((int)meta.Width * (int)meta.Height / 2);