mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-28 00:59:26 +01:00
Cooked Unreal textures in PF_DXT3 were recognised but couldn't be previewed or exported, because the shared pixel decoder had no DXT3 (BC2) layout. It now decodes 16-byte DXT3 blocks: each texel's explicit 4-bit alpha is widened to 8 bits, and the colour block always uses four-colour interpolation. Clipped edge blocks and the image size budget work as for the other block formats. Tests cover every alpha level, low-first endpoints, odd sizes, truncated blocks, output limits and a cooked Unreal package.