mirror of
https://github.com/minetest/minetest.git
synced 2025-01-11 15:57:29 +01:00
Use the same light level for non-solid draw types as for solid
This commit is contained in:
parent
fcd670e6f7
commit
a075d83752
@ -1131,7 +1131,7 @@ void MapblockMeshGenerator::drawPlantlikeRootedNode()
|
|||||||
getSmoothLightFrame();
|
getSmoothLightFrame();
|
||||||
} else {
|
} else {
|
||||||
MapNode ntop = data->m_vmanip.getNodeNoEx(blockpos_nodes + p);
|
MapNode ntop = data->m_vmanip.getNodeNoEx(blockpos_nodes + p);
|
||||||
light = LightPair(getInteriorLight(ntop, 1, nodedef));
|
light = LightPair(getInteriorLight(ntop, 0, nodedef));
|
||||||
}
|
}
|
||||||
drawPlantlike(true);
|
drawPlantlike(true);
|
||||||
p.Y--;
|
p.Y--;
|
||||||
@ -1594,7 +1594,7 @@ void MapblockMeshGenerator::drawNode()
|
|||||||
if (data->m_smooth_lighting)
|
if (data->m_smooth_lighting)
|
||||||
getSmoothLightFrame();
|
getSmoothLightFrame();
|
||||||
else
|
else
|
||||||
light = LightPair(getInteriorLight(n, 1, nodedef));
|
light = LightPair(getInteriorLight(n, 0, nodedef));
|
||||||
switch (f->drawtype) {
|
switch (f->drawtype) {
|
||||||
case NDT_FLOWINGLIQUID: drawLiquidNode(); break;
|
case NDT_FLOWINGLIQUID: drawLiquidNode(); break;
|
||||||
case NDT_GLASSLIKE: drawGlasslikeNode(); break;
|
case NDT_GLASSLIKE: drawGlasslikeNode(); break;
|
||||||
|
Loading…
Reference in New Issue
Block a user