From ed483a565b82d35595fc4f44d38cf61f66875400 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 15 Jul 2011 21:12:52 +0200 Subject: [PATCH] set S2TC configuration --- misc/tools/cached-converter.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/misc/tools/cached-converter.sh b/misc/tools/cached-converter.sh index 6566f762..642edb10 100755 --- a/misc/tools/cached-converter.sh +++ b/misc/tools/cached-converter.sh @@ -308,6 +308,20 @@ for F in "$@"; do ;; esac + # configure S2TC + case "$f" in + *_norm) + export S2TC_COLORDIST_MODE=NORMALMAP + export S2TC_RANDOM_COLORS=256 + export S2TC_REFINE_COLORS=LOOP + ;; + *) + export S2TC_COLORDIST_MODE=SRGB_MIXED + export S2TC_RANDOM_COLORS=64 + export S2TC_REFINE_COLORS=LOOP + ;; + esac + # for deluxemaps, lightmaps and normalmaps, enforce high jpeg quality (like on alpha channels) if [ "$jqual_a" -gt "$jqual_rgb" ]; then case "$f" in -- 2.39.2