forked from VoxeLibre/VoxeLibre
Fixing a bug with patterns on the banner, displaying textured folds
This commit is contained in:
parent
a7abf092a5
commit
4ff1d9fd22
|
@ -96,8 +96,8 @@ end
|
|||
dofile(modpath.."/patterncraft.lua")
|
||||
|
||||
-- Overlay ratios (0-255)
|
||||
local base_color_ratio = 224
|
||||
local layer_ratio = 255
|
||||
local base_color_ratio = 225
|
||||
local layer_ratio = 225
|
||||
|
||||
local standing_banner_entity_offset = { x=0, y=-0.499, z=0 }
|
||||
local hanging_banner_entity_offset = { x=0, y=-1.7, z=0 }
|
||||
|
@ -181,7 +181,7 @@ function mcl_banners.make_banner_texture(base_color, layers)
|
|||
local color = mcl_banners.colors[layerinfo.color][4]
|
||||
|
||||
-- Generate layer texture
|
||||
local layer = "(("..pattern.."^[colorize:"..color..":"..layer_ratio..")^[mask:"..pattern..")"
|
||||
local layer = "((mcl_banners_banner_base.png^[colorize:"..color..":"..layer_ratio..")^[mask:"..pattern..")"
|
||||
|
||||
finished_banner = finished_banner .. "^" .. layer
|
||||
end
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 791 B After Width: | Height: | Size: 25 KiB |
Loading…
Reference in New Issue