mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-22 15:33:49 +01:00
Clarify function of thickness param of nodes
This commit is contained in:
parent
80ad231b1f
commit
70b75507fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user