Skip to content

Commit 70b7550

Browse files
committedMar 18, 2015
Clarify function of thickness param of nodes
1 parent 80ad231 commit 70b7550

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎TileGenerator.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ inline void TileGenerator::renderShading(int zPos)
589589
if (d > 36) {
590590
d = 36;
591591
}
592+
// more thickness -> less visible shadows: t=0 -> 100% visible, t=255 -> 0% visible
592593
if (m_drawAlpha)
593594
d = d * ((0xFF - m_blockPixelAttributes.attribute(z, x).thicken) / 255.0);
594595
int sourceColor = m_image->tpixels[imageY][getImageX(x)] & 0xffffff;

0 commit comments

Comments
 (0)
Please sign in to comment.