mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-06-28 12:56:01 +02:00
Use texture colorization where possible
Uses "color = <foo>" in the tile image def instead of compositing with ^[colorize or ^[brighten. Saves RAM.
This commit is contained in:
@ -16,7 +16,7 @@ for i in ipairs(lrfurn.colors) do
|
||||
drawtype = "mesh",
|
||||
mesh = "lrfurn_armchair.obj",
|
||||
tiles = {
|
||||
"lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
|
||||
{ name = "lrfurn_upholstery.png", color = hue },
|
||||
"lrfurn_sofa_bottom.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
|
@ -8,22 +8,22 @@ lrfurn.fdir_to_fwd = {
|
||||
{ -1, 0 },
|
||||
}
|
||||
|
||||
lrfurn.colors = { -- mod changed to use colorize feature of minetest engine (cg72)
|
||||
{ "black", "#000000:230" },
|
||||
{ "brown", "#251005:225" },
|
||||
{ "blue", "#0000d0:225" },
|
||||
{ "cyan", "#009fa7:250" },
|
||||
{ "dark_grey", "#101010:175" },
|
||||
{ "dark_green", "#007000:230" },
|
||||
{ "green", "#00d000:250" },
|
||||
{ "grey", "#101010:100" },
|
||||
{ "magenta", "#e0048b:250" },
|
||||
{ "orange", "#ee9000:240" },
|
||||
{ "pink", "#ff90b0:250" },
|
||||
{ "red", "#800000:240" },
|
||||
{ "violet", "#9000d0:250" },
|
||||
{ "white", "#000000:000" },
|
||||
{ "yellow", "#dde000:240" }
|
||||
lrfurn.colors = {
|
||||
{ "black", 0xff000000 },
|
||||
{ "brown", 0xff251005 },
|
||||
{ "blue", 0xff0000d0 },
|
||||
{ "cyan", 0xff009fa7 },
|
||||
{ "dark_grey", 0xff101010 },
|
||||
{ "dark_green", 0xff007000 },
|
||||
{ "green", 0xff00d000 },
|
||||
{ "grey", 0xff303030 },
|
||||
{ "magenta", 0xffe0048b },
|
||||
{ "orange", 0xffee9000 },
|
||||
{ "pink", 0xffff90b0 },
|
||||
{ "red", 0xff800000 },
|
||||
{ "violet", 0xff9000d0 },
|
||||
{ "white", 0xff000000 },
|
||||
{ "yellow", 0xffdde000 }
|
||||
}
|
||||
|
||||
function lrfurn.check_forward(pos, fdir, long, placer)
|
||||
|
@ -21,7 +21,7 @@ for i in ipairs(lrfurn.colors) do
|
||||
drawtype = "mesh",
|
||||
mesh = "lrfurn_sofa_long.obj",
|
||||
tiles = {
|
||||
"lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
|
||||
{ name = "lrfurn_upholstery.png", color = hue },
|
||||
"lrfurn_sofa_bottom.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
|
@ -22,7 +22,7 @@ for i in ipairs(lrfurn.colors) do
|
||||
drawtype = "mesh",
|
||||
mesh = "lrfurn_sofa_short.obj",
|
||||
tiles = {
|
||||
"lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
|
||||
{ name = "lrfurn_upholstery.png", color = hue },
|
||||
"lrfurn_sofa_bottom.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 121 B |
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
BIN
lrfurn/textures/lrfurn_upholstery.png
Normal file
BIN
lrfurn/textures/lrfurn_upholstery.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user