← Files UnityARCHIVED FILE

skills/using-unity/references/optimize-web/scripts/toktx-examples.sh

497 Bytes · Nov 20, 2026 · 18:10 UTC

↓ Download file

See the change to this file →

# Albedo / diffuse (ETC1S, lossy, smallest)
toktx --bcmp --lower_left_maps_to_s0t0 output.ktx2 input.png

# Normal / metallic / detail (UASTC, high fidelity)
toktx --encode uastc --uastc_quality 2 --t2 --lower_left_maps_to_s0t0 output.ktx2 input.png

# Fix "ICC profile not found" errors
toktx --bcmp --assign_oetf srgb --lower_left_maps_to_s0t0 output.ktx2 input.png

# Linear data (normal maps, masks)
toktx --bcmp --assign_oetf linear --lower_left_maps_to_s0t0 output.ktx2 input.png

SHA-256: 74893d9d57060bb3871c6e4adedde4e6ef5703422bf18b1f5caa98f1abf6d337