From: Rudolf Polzer Date: Fri, 15 Jul 2011 19:12:52 +0000 (+0200) Subject: set S2TC configuration X-Git-Tag: xonotic-v0.5.0~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ed483a565b82d35595fc4f44d38cf61f66875400;p=xonotic%2Fxonotic.git set S2TC configuration --- 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