1
0
şunun yansıması https://github.com/luanti-org/minetestmapper.git eşitlendi 2025-12-31 19:55:25 +01:00

Removed bad shadows.

Bu işleme şunda yer alıyor:
Miroslav Bendík
2012-08-25 13:27:40 +02:00
ebeveyn 1aee368837
işleme 5be190b5a1
3 değiştirilmiş dosya ile 13 ekleme ve 1 silme

Dosyayı Görüntüle

@@ -475,6 +475,9 @@ inline void TileGenerator::renderShading(int zPos)
continue;
}
for (int x = 0; x < m_mapWidth; ++x) {
if (!m_blockPixelAttributes.attribute(z, x).valid_height() || !m_blockPixelAttributes.attribute(z, x - 1).valid_height() || !m_blockPixelAttributes.attribute(z - 1, x).valid_height()) {
continue;
}
int y = m_blockPixelAttributes.attribute(z, x).height;
int y1 = m_blockPixelAttributes.attribute(z, x - 1).height;
int y2 = m_blockPixelAttributes.attribute(z - 1, x).height;