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.
This commit is contained in:
Vanessa Ezekowitz 2013-04-27 06:48:20 -04:00
parent 7cc664d47f
commit 8f2090d3d3
5 changed files with 2 additions and 0 deletions

View File

@ -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",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 706 B

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 736 B

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 706 B

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

After

Width:  |  Height:  |  Size: 753 B