Skip to content

Commit 34a5960

Browse files
authoredOct 30, 2018
Framed glasslike: Fix and document top/base textures feature (#7824)
1 parent 88ba1c7 commit 34a5960

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

Diff for: ‎doc/lua_api.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,11 @@ Look for examples in `games/minimal` or `games/minetest_game`.
10821082
size: 1 pixel for 16x16, 2 pixels for 32x32 etc.
10831083
* The glass 'shine' (or other desired detail) on each node face is supplied
10841084
by the second texture specified in `tiles`.
1085+
* If a third texture is specified in `tiles` it will be used for the top and
1086+
base of the glass volume.
1087+
* If third and fourth textures are specified in `tiles`, the third will be
1088+
used for the top of the glass volume and the fourth will be used for the
1089+
base of the glass volume.
10851090
* `glasslike_framed_optional`
10861091
* This switches between the above 2 drawtypes according to the menu setting
10871092
'Connected Glass'.

Diff for: ‎src/content_mapblock.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ void MapblockMeshGenerator::drawGlasslikeFramedNode()
702702
tiles[2].layers[0].texture &&
703703
tiles[3].layers[0].texture) {
704704
glass_tiles[0] = tiles[4];
705-
glass_tiles[1] = tiles[0];
705+
glass_tiles[1] = tiles[2];
706706
glass_tiles[2] = tiles[4];
707707
glass_tiles[3] = tiles[4];
708708
glass_tiles[4] = tiles[3];

0 commit comments

Comments
 (0)