]> de.git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blobdiff - textures/exomorphx/makenorms.sh
Squashed commit of the following (exomorph by morphed):
[xonotic/xonotic-maps.pk3dir.git] / textures / exomorphx / makenorms.sh
diff --git a/textures/exomorphx/makenorms.sh b/textures/exomorphx/makenorms.sh
new file mode 100644 (file)
index 0000000..e297cf4
--- /dev/null
@@ -0,0 +1,19 @@
+rm -rf out
+mkdir out
+for X in */*_norm.tga; do
+       case "$X" in
+               wall/metal_wall04_norm.tga)
+                       # this one is adjusted manually
+                       continue
+                       ;;
+       esac
+       Y=`echo textures/exomorphx/"${X%_norm.tga}" | sed 's/\\//\\\\\\//g'`
+       echo "1"
+       echo "/map $Y\$/"
+       echo "?dpoffsetmapping"
+       echo "change 1"
+       ../../../../misc/tools/fft-normalmap-to-heightmap-soft.sh "$X" "$X" none 0.017 0
+       echo "."
+       convert "$X" -alpha extract "out/`echo "$X" | tr / -`"
+done
+echo "wq"