Silent Siege - duel/ffa map by Justin
[xonotic/xonotic-maps.pk3dir.git] / textures / exomorphx / makenorms.sh
1 rm -rf out
2 mkdir out
3 for X in */*_norm.tga; do
4         case "$X" in
5                 wall/metal_wall04_norm.tga)
6                         # this one is adjusted manually
7                         continue
8                         ;;
9         esac
10         Y=`echo textures/exomorphx/"${X%_norm.tga}" | sed 's/\\//\\\\\\//g'`
11         echo "1"
12         echo "/map $Y\$/"
13         echo "?dpoffsetmapping"
14         echo "change 1"
15         ../../../../misc/tools/fft-normalmap-to-heightmap-soft.sh "$X" "$X" none 0.017 0
16         echo "."
17         convert "$X" -alpha extract "out/`echo "$X" | tr / -`"
18 done
19 echo "wq"