0

fixed black lines showing up on lit maps, at chunk boundaries

This commit is contained in:
Aaron Griffith
2011-03-23 00:19:54 -04:00
parent ff464bde3c
commit 19a2eafcd5

View File

@@ -69,6 +69,12 @@ get_lighting_coefficient(RenderModeLighting *self, RenderState *state, int x, in
unsigned char block = getArrayByte3D(blocks, local_x, local_y, local_z); unsigned char block = getArrayByte3D(blocks, local_x, local_y, local_z);
/* if this block is opaque, use a fully-lit coeff instead
to prevent stippled lines along chunk boundaries! */
if (!is_transparent(block)) {
return self->calculate_darkness(15, 0);
}
if (block == 44) { if (block == 44) {
/* TODO special handling for half-blocks! */ /* TODO special handling for half-blocks! */
} }