projects
/
xonotic
/
xonotic.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5898aff
)
set S2TC configuration
author
Rudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 19:12:52 +0000
(21:12 +0200)
committer
Rudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 19:12:52 +0000
(21:12 +0200)
misc/tools/cached-converter.sh
patch
|
blob
|
history
diff --git
a/misc/tools/cached-converter.sh
b/misc/tools/cached-converter.sh
index 6566f7623d62c290556df87b378b3d89c2d2515d..642edb108062a356c0986532e48246cd92337b05 100755
(executable)
--- 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