mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix rebase bug, make render loop use cache setting
This commit is contained in:
parent
0904884ad4
commit
a0535d286b
1 changed files with 1 additions and 1 deletions
|
@ -859,7 +859,7 @@ public:
|
|||
// Fog distance
|
||||
float fog_distance = 10000 * BS;
|
||||
|
||||
if (g_settings->getBool("enable_fog") && !*m_force_fog_off)
|
||||
if (m_fogEnabled && !*m_force_fog_off)
|
||||
fog_distance = *m_fog_range;
|
||||
|
||||
services->setPixelShaderConstant("fogDistance", &fog_distance, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue