(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)
)