Try to enable advanced lighting on newer android phones.

We can see what is the feedback if it's fast enough for users. It still looks much better than without advanced lighting even when resolution is lower.
This commit is contained in:
Deve 2021-01-20 00:12:12 +01:00
parent a7a1c8abca
commit 3b02643db3

View File

@ -168,6 +168,12 @@ void override_default_params_for_mobile()
Log::info("MainAndroid", "Render scale: %f",
(float)UserConfigParams::m_scale_rtts_factor);
}
// Enable advanced lighting for android >= 8
if (SDL_GetAndroidSDKVersion() >= 26)
{
UserConfigParams::m_dynamic_lights = true;
}
#endif
// Enable screen keyboard