Clarify function of thickness param of nodes

This commit is contained in:
sfan5 2015-03-18 22:22:10 +01:00
parent 80ad231b1f
commit 70b75507fe
1 changed files with 1 additions and 0 deletions

View File

@ -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;