mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting
* Increase performance (client) * Avoid changing a global value to solve a local problem
This commit is contained in:
parent
cfca5f99e6
commit
d25ff8fd25
6 changed files with 13 additions and 16 deletions
|
@ -42,7 +42,7 @@ static void applyFacesShading(video::SColor& color, float factor)
|
|||
MeshMakeData
|
||||
*/
|
||||
|
||||
MeshMakeData::MeshMakeData(IGameDef *gamedef):
|
||||
MeshMakeData::MeshMakeData(IGameDef *gamedef, bool use_shaders):
|
||||
m_vmanip(),
|
||||
m_blockpos(-1337,-1337,-1337),
|
||||
m_crack_pos_relative(-1337, -1337, -1337),
|
||||
|
@ -50,7 +50,8 @@ MeshMakeData::MeshMakeData(IGameDef *gamedef):
|
|||
m_smooth_lighting(false),
|
||||
m_show_hud(false),
|
||||
m_highlight_mesh_color(255, 255, 255, 255),
|
||||
m_gamedef(gamedef)
|
||||
m_gamedef(gamedef),
|
||||
m_use_shaders(use_shaders)
|
||||
{}
|
||||
|
||||
void MeshMakeData::fill(MapBlock *block)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue