Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp
index bcc4cba..83d8e2b 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/mapblock_mesh.cpp
@@ -259,7 +259,6 @@ static u8 getSmoothLight(enum LightBank bank, v3s16 p, MeshMakeData *data)
MapNode n = data->m_vmanip.getNodeNoEx(p - dirs8[i]);
if (n.getContent() == CONTENT_IGNORE) {
- ambient_occlusion++;
continue;
}
@@ -273,6 +272,9 @@ static u8 getSmoothLight(enum LightBank bank, v3s16 p, MeshMakeData *data)
light += decode_light(n.getLight(bank, ndef));
light_count++;
}
+ else {
+ ambient_occlusion++;
+ }
}
if(light_count == 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.