mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Refactor the way you set material properties
Instead of using SMaterial::setFlag, you now set them directly on SMaterial or SMaterialLayer.
This commit is contained in:
@@ -112,7 +112,7 @@ Hud::Hud(Client *client, LocalPlayer *player,
|
||||
rangelim(g_settings->getS16("selectionbox_width"), 1, 5);
|
||||
} else if (m_mode == HIGHLIGHT_HALO) {
|
||||
m_selection_material.setTexture(0, tsrc->getTextureForMesh("halo.png"));
|
||||
m_selection_material.setFlag(video::EMF_BACK_FACE_CULLING, true);
|
||||
m_selection_material.BackfaceCulling = true;
|
||||
} else {
|
||||
m_selection_material.MaterialType = video::EMT_SOLID;
|
||||
}
|
||||
|
Reference in New Issue
Block a user