change that

master
Evert 2018-03-20 19:47:17 +02:00
parent 2f188ddfc9
commit c82b330849
No known key found for this signature in database
GPG Key ID: 1688DA83D222D0B5
1 changed files with 2 additions and 2 deletions

View File

@ -739,11 +739,11 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
// Add planet-specific settings to header
if (g_settings->getBool("planet_enable"))
shaders_header += "#define ENABLE_PLANET\n";
if (g_settings->getBool("planet_keep_scale"))
shaders_header += "#define PLANET_KEEP_SCALE\n";
shaders_header += "#define PLANET_RADIUS " + std::to_string(g_settings->getU16("planet_radius")) + "\n";
shaders_header += "#define PLANET_RADIUS " + itos(g_settings->getU16("planet_radius")) + "\n";
shaders_header += "#define FOG_START ";
shaders_header += ftos(rangelim(g_settings->getFloat("fog_start"), 0.0f, 0.99f));