mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Fix broken alpha in texture converter
This commit is contained in:
parent
1319271fd4
commit
2cf712a0be
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ tex_dir = base_dir + "/assets/minecraft/textures"
|
||||||
def convert_alphatex(colormap, source, colormap_pixel, texture_size, destination):
|
def convert_alphatex(colormap, source, colormap_pixel, texture_size, destination):
|
||||||
os.system("convert "+colormap+" -crop 1x1+"+colormap_pixel+" -depth 8 -resize "+texture_size+"x"+texture_size+" "+tempfile1.name)
|
os.system("convert "+colormap+" -crop 1x1+"+colormap_pixel+" -depth 8 -resize "+texture_size+"x"+texture_size+" "+tempfile1.name)
|
||||||
os.system("composite -compose Multiply "+tempfile1.name+" "+source+" "+tempfile2.name)
|
os.system("composite -compose Multiply "+tempfile1.name+" "+source+" "+tempfile2.name)
|
||||||
os.system("composite -compose Dst_In "+source+" "+tempfile1.name+" -alpha Set "+destination)
|
os.system("composite -compose Dst_In "+source+" "+tempfile2.name+" -alpha Set "+destination)
|
||||||
|
|
||||||
def target_dir(directory):
|
def target_dir(directory):
|
||||||
if make_texture_pack:
|
if make_texture_pack:
|
||||||
|
|
Loading…
Reference in a new issue