mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Client: upscale [mask or base image (#15205)
This improves texture pack compatibility. Masks are expected to be of the same size as the base texture. This change upscales the smaller texture if needed. The behaviour is now the same as a.png^b.png and a.png^[overlay:b.png (to mention a few).
This commit is contained in:
parent
a19d0033bc
commit
95d7348a08
5 changed files with 24 additions and 2 deletions
|
@ -52,6 +52,12 @@ minetest.register_node("testnodes:fill_positioning_reference", {
|
|||
groups = {dig_immediate = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("testnodes:modifier_mask", {
|
||||
description = S("[mask Modifier Test Node"),
|
||||
tiles = {"testnodes_128x128_rgb.png^[mask:testnodes_mask_WRGBKW.png"},
|
||||
groups = {dig_immediate = 3},
|
||||
})
|
||||
|
||||
-- Node texture transparency test
|
||||
|
||||
local alphas = { 64, 128, 191 }
|
||||
|
|
BIN
games/devtest/mods/testnodes/textures/testnodes_128x128_rgb.png
Normal file
BIN
games/devtest/mods/testnodes/textures/testnodes_128x128_rgb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
games/devtest/mods/testnodes/textures/testnodes_mask_WRGBKW.png
Normal file
BIN
games/devtest/mods/testnodes/textures/testnodes_mask_WRGBKW.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 148 B |
Loading…
Add table
Add a link
Reference in a new issue