Framed glasslike: Fix and document top/base textures feature (#7824)
authorParamat <paramat@users.noreply.github.com>
Tue, 30 Oct 2018 06:41:15 +0000 (06:41 +0000)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 06:41:15 +0000 (06:41 +0000)
doc/lua_api.txt
src/content_mapblock.cpp

index 53f27e20c08c15a8ab01c39a639b4562473e3872..2b05cff8c1db90ec8289f85ca560d86163b497f4 100644 (file)
@@ -1082,6 +1082,11 @@ Look for examples in `games/minimal` or `games/minetest_game`.
       size: 1 pixel for 16x16, 2 pixels for 32x32 etc.
     * The glass 'shine' (or other desired detail) on each node face is supplied
       by the second texture specified in `tiles`.
+    * If a third texture is specified in `tiles` it will be used for the top and
+      base of the glass volume.
+    * If third and fourth textures are specified in `tiles`, the third will be
+      used for the top of the glass volume and the fourth will be used for the
+      base of the glass volume.
 * `glasslike_framed_optional`
     * This switches between the above 2 drawtypes according to the menu setting
       'Connected Glass'.
index 0259ca3af05d18a4fcee8c1c4cb73e5f03f7d210..7b8231869a516693ab4cde31a6faeb885077e63d 100644 (file)
@@ -702,7 +702,7 @@ void MapblockMeshGenerator::drawGlasslikeFramedNode()
                        tiles[2].layers[0].texture &&
                        tiles[3].layers[0].texture) {
                glass_tiles[0] = tiles[4];
-               glass_tiles[1] = tiles[0];
+               glass_tiles[1] = tiles[2];
                glass_tiles[2] = tiles[4];
                glass_tiles[3] = tiles[4];
                glass_tiles[4] = tiles[3];