add embossing effect to generated hammer heads
Idea by texmex https://gitlab.com/tacotexmex https://forum.minetest.net/viewtopic.php?p=349194#p349194
BIN
screenshot.png
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 13 KiB |
@ -64,6 +64,7 @@ uniham.register_hammer = function (short_id, definition)
|
|||||||
['+h'] = definition.head,
|
['+h'] = definition.head,
|
||||||
['+m'] = 'uniham_head_mask.png'
|
['+m'] = 'uniham_head_mask.png'
|
||||||
})
|
})
|
||||||
|
texture = '(('..texture..')^(uniham_emboss.png^[opacity:51.2))'
|
||||||
end
|
end
|
||||||
|
|
||||||
if definition.texture then
|
if definition.texture then
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
All textures are licensed unter CC-BY-SA 4.0 or later
|
All textures are licensed under CC-BY-SA 4.0 or later
|
||||||
|
|
||||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||||
|
BIN
textures/uniham_emboss.png
Normal file
After Width: | Height: | Size: 138 B |