1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 09:25:37 +02:00

Mostly deal with problems caused by polygon offset (#15867)

This commit is contained in:
sfan5
2025-03-16 17:56:32 +01:00
committed by GitHub
parent c07499ccfc
commit 42ac5b2f40
3 changed files with 25 additions and 7 deletions

View File

@@ -919,6 +919,8 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
fillTileAttribs(tsrc, &tiles[j].layers[1], tiles[j], tdef_overlay[j],
color, overlay_material, overlay_shader,
tdef[j].backface_culling, tsettings);
tiles[j].layers[0].need_polygon_offset = !tiles[j].layers[1].empty();
}
MaterialType special_material = material_type;