]> git.lizzy.rs Git - minetest.git/commitdiff
Use the same light level for non-solid draw types as for solid
authorx2048 <codeforsmile@gmail.com>
Sun, 4 Sep 2022 20:15:21 +0000 (22:15 +0200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 30 Oct 2022 15:53:45 +0000 (16:53 +0100)
src/client/content_mapblock.cpp

index a9abbceeb802613ece58cf068aa79484f83e3ec5..b46fde5e349ec1a12a26dac4aae34ef8465f13d4 100644 (file)
@@ -1131,7 +1131,7 @@ void MapblockMeshGenerator::drawPlantlikeRootedNode()
                getSmoothLightFrame();
        } else {
                MapNode ntop = data->m_vmanip.getNodeNoEx(blockpos_nodes + p);
-               light = LightPair(getInteriorLight(ntop, 1, nodedef));
+               light = LightPair(getInteriorLight(ntop, 0, nodedef));
        }
        drawPlantlike(true);
        p.Y--;
@@ -1594,7 +1594,7 @@ void MapblockMeshGenerator::drawNode()
        if (data->m_smooth_lighting)
                getSmoothLightFrame();
        else
-               light = LightPair(getInteriorLight(n, 1, nodedef));
+               light = LightPair(getInteriorLight(n, 0, nodedef));
        switch (f->drawtype) {
                case NDT_FLOWINGLIQUID:     drawLiquidNode(); break;
                case NDT_GLASSLIKE:         drawGlasslikeNode(); break;