1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Handle texture filtering sanely to avoid blurriness (#16034)

This commit is contained in:
sfan5 2025-04-21 12:31:44 +02:00 committed by GitHub
parent 1c5776d13a
commit 4c4e296274
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 70 additions and 65 deletions

View file

@ -272,7 +272,8 @@ void TextureSettings::readSettings()
connected_glass = g_settings->getBool("connected_glass");
translucent_liquids = g_settings->getBool("translucent_liquids");
enable_minimap = g_settings->getBool("enable_minimap");
node_texture_size = std::max<u16>(g_settings->getU16("texture_min_size"), 1);
node_texture_size = rangelim(g_settings->getU16("texture_min_size"),
TEXTURE_FILTER_MIN_SIZE, 16384);
std::string leaves_style_str = g_settings->get("leaves_style");
std::string world_aligned_mode_str = g_settings->get("world_aligned_mode");
std::string autoscale_mode_str = g_settings->get("autoscale_mode");