Skip to content

Commit e2fee73

Browse files
fix(PVRTexTool): color space changed to match the game colors
1 parent dfcd81e commit e2fee73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/lib/pvr_tex_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from system import run
88

99
TOOL_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
10-
PIXEL_FORMAT = "r8g8b8a8,UBN,lRGB"
10+
COLOR_SPACE = "sRGB"
1111
KTX_FORMAT = "ETC1,UBN,lRGB"
1212
QUALITY = "etcfast"
1313
CLI_PATH = f"{TOOL_DIR}/system/bin/PVRTexToolCLI"
@@ -40,7 +40,7 @@ def convert_ktx_to_png(filepath: Path, output_folder: Path | None = None) -> Pat
4040
if output_folder is not None:
4141
output_filepath = output_folder / output_filepath.name
4242

43-
run(f"{CLI_PATH} -noout -i {filepath!s} -d {output_filepath!s}")
43+
run(f"{CLI_PATH} -noout -ics {COLOR_SPACE} -i {filepath!s} -d {output_filepath!s}")
4444

4545
return output_filepath
4646

0 commit comments

Comments
 (0)