1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add smooth lighting for all nodes

Note: Smooth lighting disables the mesh cache.
This commit is contained in:
number Zero 2017-01-25 00:33:01 +03:00 committed by Auke Kok
parent 87e9466caf
commit 33e0eedbfb
3 changed files with 396 additions and 129 deletions

View file

@ -236,7 +236,7 @@ static u16 getSmoothLightCombined(v3s16 p, MeshMakeData *data)
for (u32 i = 0; i < 8; i++)
{
const MapNode &n = data->m_vmanip.getNodeRefUnsafeCheckFlags(p - dirs8[i]);
MapNode n = data->m_vmanip.getNodeNoExNoEmerge(p - dirs8[i]);
// if it's CONTENT_IGNORE we can't do any light calculations
if (n.getContent() == CONTENT_IGNORE) {