mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(DDS): added DXT3 decoder.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user