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:
parent
87e9466caf
commit
33e0eedbfb
3 changed files with 396 additions and 129 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue