hopefully the last fix to that alpha channel stupidity...

This commit is contained in:
Rudolf Polzer 2010-08-20 18:01:58 +02:00
parent f1091cc7a1
commit 55aecf86d5

View File

@ -34,10 +34,13 @@ gimp -i -b - <<EOF
(i 1)
)
(gimp-layer-add-alpha layer)
(plug-in-normalmap RUN-NONINTERACTIVE img drawable $filter $minz $scale 1 $heightsource 1 $conv 0 0 1 0 1 layer)
(aset mycurve 0 1)
(while (< i 256) (aset mycurve i i) (set! i (+ i 1)))
(gimp-curves-explicit drawable HISTOGRAM-RED 256 mycurve)
(gimp-curves-explicit drawable HISTOGRAM-GREEN 256 mycurve)
(gimp-curves-explicit drawable HISTOGRAM-BLUE 256 mycurve)
(gimp-curves-explicit drawable HISTOGRAM-ALPHA 256 mycurve)
(plug-in-normalmap RUN-NONINTERACTIVE img drawable $filter $minz $scale 1 $heightsource 1 $conv 0 0 1 0 1 layer)
(file-tga-save RUN-NONINTERACTIVE img drawable "$out" "$out" 1 1)
(gimp-quit 0)
)