From: Rudolf Polzer Date: Fri, 20 Aug 2010 05:11:32 +0000 (+0200) Subject: add a heightsource option so one can "regenerate" normalmaps X-Git-Tag: xonotic-v0.1.0preview~288 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=79741c1f709a2e9e7a31a410716af643822d8930;ds=sidebyside add a heightsource option so one can "regenerate" normalmaps --- 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 - <