mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-14 19:05:09 +00:00
hopefully the last fix to that alpha channel stupidity...
This commit is contained in:
parent
f1091cc7a1
commit
55aecf86d5
@ -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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user