Added experimental alpha support to fancy door, disabled by default.
To enable, uncomment "use_texture_alpha" on lines 72 and 99 of doors_and_gates.lua, and make sure that if you are using a texture pack, that it has support for alpha on these doors. (HDX does, as do the default textures). Note that alpha support is glitchy - without shaders it will not work at all, and the doors' nodeboxes will be screwed up. With shaders, it mostly works, but the whole door is slightly translucent where it should not be.
|
@ -69,6 +69,7 @@ for i in ipairs(sides) do
|
||||||
groups = {snappy=3, not_in_creative_inventory=1},
|
groups = {snappy=3, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
|
-- use_texture_alpha = true,
|
||||||
selection_box = selectboxes_top,
|
selection_box = selectboxes_top,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -95,6 +96,7 @@ for i in ipairs(sides) do
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
|
-- use_texture_alpha = true,
|
||||||
selection_box = selectboxes_bottom,
|
selection_box = selectboxes_bottom,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
|
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 714 B |
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 714 B |
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 753 B |