UnrealPackageReader.js
    Preparing search index...

    Function decodeDxt1

    • Decode a TEXF_DXT1 mip to packed RGBA.

      DXT1 is DirectX's name for the first variant of S3 Texture Compression (S3TC), the block format devised by the graphics chip maker S3. The Unreal engine does not decode it, but instead calls S3's library.

      Implementation ported from Antonio Cordero Balcázar's Unreal Tournament Package Tool, with the RGB565 endpoints widened to 8 bits by bit replication so that full intensity reaches 255.

      Parameters

      • data: Uint8Array
      • width: number
      • height: number

      Returns Uint8ClampedArray