X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fnormalmap.sh;h=b41b613a0f68598420f3f19933b6eea9f3bdc3c2;hp=08ca0fae071d882f6b3590e8521e2594f6b9ba19;hb=e1e181875ab7334988eae52e5d7a5d1ef015587d;hpb=c3b65641f6ba82a8e001ab57b5d9117f907e7669 diff --git a/misc/tools/normalmap.sh b/misc/tools/normalmap.sh index 08ca0fae..b41b613a 100755 --- a/misc/tools/normalmap.sh +++ b/misc/tools/normalmap.sh @@ -2,6 +2,7 @@ # usage: ./bump2norm.sh foo_bump.tga foo_norm.tga # NOTE: unfortunately requires X-server (otherwise file-tga-save won't work... no joke) +# also, alpha channel value 0 is avoided as gimp doesn't save it properly in=$1 out=$2 @@ -29,8 +30,16 @@ gimp -i -b - <