]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
set S2TC configuration
authorRudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 19:12:52 +0000 (21:12 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 19:12:52 +0000 (21:12 +0200)
misc/tools/cached-converter.sh

index 6566f7623d62c290556df87b378b3d89c2d2515d..642edb108062a356c0986532e48246cd92337b05 100755 (executable)
@@ -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