Skip to content

Commit

Permalink
Clarify function of thickness param of nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Mar 18, 2015
1 parent 80ad231 commit 70b7550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TileGenerator.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 70b7550

Please sign in to comment.