From 70b75507fefe78a89f3b03f4895fd52fde6fd70b Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 18 Mar 2015 22:22:10 +0100 Subject: [PATCH] Clarify function of thickness param of nodes --- TileGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/TileGenerator.cpp b/TileGenerator.cpp index c8cd58b..806ddfb 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -589,6 +589,7 @@ inline void TileGenerator::renderShading(int zPos) if (d > 36) { d = 36; } + // more thickness -> less visible shadows: t=0 -> 100% visible, t=255 -> 0% visible if (m_drawAlpha) d = d * ((0xFF - m_blockPixelAttributes.attribute(z, x).thicken) / 255.0); int sourceColor = m_image->tpixels[imageY][getImageX(x)] & 0xffffff;