change that
parent
2f188ddfc9
commit
c82b330849
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue