1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Meshgen: Handle enable_water_reflections like smooth_lighting

This commit is contained in:
Desour 2025-01-07 15:36:45 +01:00 committed by DS
parent 9a60b83061
commit c0ce918d77
8 changed files with 13 additions and 19 deletions

View file

@ -39,7 +39,8 @@ public:
MeshMakeData makeSingleNodeMMD(bool smooth_lighting = true)
{
MeshMakeData data{ndef(), 1};
data.setSmoothLighting(smooth_lighting);
data.m_smooth_lighting = smooth_lighting;
data.m_enable_water_reflections = false;
data.m_blockpos = {0, 0, 0};
for (s16 x = -1; x <= 1; x++)
for (s16 y = -1; y <= 1; y++)