From 79741c1f709a2e9e7a31a410716af643822d8930 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 20 Aug 2010 07:11:32 +0200 Subject: [PATCH] add a heightsource option so one can "regenerate" normalmaps --- misc/tools/normalmap.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/tools/normalmap.sh b/misc/tools/normalmap.sh index 08905b79..08ca0fae 100755 --- a/misc/tools/normalmap.sh +++ b/misc/tools/normalmap.sh @@ -13,11 +13,14 @@ out=$2 # Minimun Z (0 to 1) # scale: # Scale (>0) +# heightsource: +# Height source (0 = average RGB, 1 = alpha channel) # conv: # Conversion (0 = none, 1 = Biased RGB, 2 = Red, 3 = Green, 4 = Blue, 5 = Max RGB, 6 = Min RGB, 7 = Colorspace) : ${filter:=0} : ${minz:=0} : ${scale:=1} +: ${heightsource:=0} : ${conv:=0} gimp -i -b - <