diff options
| author | ZroFreaks <42916282+ZroIsHere@users.noreply.github.com> | 2026-11-26 07:05:16 +0100 |
|---|---|---|
| committer | ZroFreaks <42916282+ZroIsHere@users.noreply.github.com> | 2026-11-26 07:44:07 +0100 |
| commit | d36c961c3e58f9d2a0fec93cf17c8bddcae13fff (patch) | |
| tree | abe8cee3e851a57abb75bbdb8f945f9654ff3173 /tools/tex_export.py | |
| parent | a73a57e1339be072baf5522351c8ec7f1482b56b (diff) | |
dds_png: decode R9G9B9E5 shared exponent previews
Diffstat (limited to 'tools/tex_export.py')
| -rw-r--r-- | tools/tex_export.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/tex_export.py b/tools/tex_export.py index e0630805d..21a20f515 100644 --- a/tools/tex_export.py +++ b/tools/tex_export.py | |||
| @@ -13,8 +13,9 @@ For each texture: | |||
| 13 | - writes <out>/<archive>/<cpu blob>_<q index>_<WxH>_<format>.dds and records the choice in export_log.json, | 13 | - writes <out>/<archive>/<cpu blob>_<q index>_<WxH>_<format>.dds and records the choice in export_log.json, |
| 14 | with "heuristic": true whenever two distinct placements fitted (the pick is a score, not a verified layout) | 14 | with "heuristic": true whenever two distinct placements fitted (the pick is a score, not a verified layout) |
| 15 | - with --png, also writes the same path with .png for every texture tools/dds_png.py can decode (BC1-BC5, BC7 | 15 | - with --png, also writes the same path with .png for every texture tools/dds_png.py can decode (BC1-BC5, BC7 |
| 16 | and 8-bit RGBA/BGRA, R10G10B10A2_UNORM or R11G11B10_FLOAT, with no sRGB transfer; BC5 blue is a reconstructed normal Z; | 16 | and 8-bit RGBA/BGRA, R10G10B10A2_UNORM, R11G11B10_FLOAT or R9G9B9E5_SHAREDEXP, with no sRGB transfer; |
| 17 | R16_FLOAT, R32_FLOAT and R16G16B16A16_FLOAT clamped to [0, 1], NaN as 0). | 17 | BC5 blue is a reconstructed normal Z. R9G9B9E5_SHAREDEXP, R16_FLOAT, R32_FLOAT and R16G16B16A16_FLOAT |
| 18 | clamp to [0, 1], with NaN as 0 for formats that can encode it). | ||
| 18 | The rest (including BC6H) keep their | 19 | The rest (including BC6H) keep their |
| 19 | DDS only and are counted as "png unsupported". A PNG that fails to decode or write is counted as | 20 | DDS only and are counted as "png unsupported". A PNG that fails to decode or write is counted as |
| 20 | "png error:<Type>" and its DDS stays; neither changes the exit code | 21 | "png error:<Type>" and its DDS stays; neither changes the exit code |