Skip to content

Instantly share code, notes, and snippets.

View L0891-3BDBFF's full-sized avatar

Ludens Kerman L0891-3BDBFF

  • Kerbal Aeronautics and Space Administration
  • Baikerbanur Launch site, KSFSR, Kerbin
  • 20:17 (UTC +08:00)
View GitHub Profile
@sigsegv-mvm
sigsegv-mvm / TEX_file_format.txt
Last active April 22, 2024 04:36
Reverse-engineered EXAPUNKS ".TEX" texture file format details
TEX FILE FORMAT
Reverse engineering by sigsegv, 20180914.
All values are little-endian.
0x00 int: TEX file version / magic number [1002 = 0x000003EA]
0x04 int: data resolution [x]
0x08 int: data resolution [y]
0x0C int: color format { 0 => invalid, 1 => 8BPP, 2 => RGBA }
0x10 int: display resolution [x]