]> de.git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blob - textures/phillipk2x/makenorms.sh
Merge branch 'master' into mirio/implosion
[xonotic/xonotic-maps.pk3dir.git] / textures / phillipk2x / makenorms.sh
1 rm -rf out
2 mkdir out
3 for X in */*_norm.tga; do
4         Y=`echo textures/phillipk2x/"${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"