mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Mostly deal with problems caused by polygon offset (#15867)
This commit is contained in:
parent
c07499ccfc
commit
42ac5b2f40
3 changed files with 25 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue