Merge branch 'master' into cbrutail/g-23_cant_take_it_anymore
[xonotic/xonotic-maps.pk3dir.git] / textures / phillipk1x / makenorms.sh
1 rm -rf out
2 mkdir out
3 for X in */*_norm.tga; do
4         Y=`echo textures/phillipk1x/"${X%_norm.tga}" | sed 's/\\//\\\\\\//g'`
5         echo "1"
6         echo "/map $Y\$/"
7         echo "?dpoffsetmapping"
8         echo "change 1"
9         ../../../../misc/tools/fft-normalmap-to-heightmap-soft.sh "$X" "$X" none 0.149 0
10         echo "."
11         convert "$X" -alpha extract "out/`echo "$X" | tr / -`"
12 done
13 echo "wq"