mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Allow fog color to be overriden properly (#14296)
This commit is contained in:
parent
a29d3cf074
commit
9e3a11534f
11 changed files with 96 additions and 84 deletions
|
@ -46,7 +46,7 @@ struct SkyboxParams
|
|||
float body_orbit_tilt { INVALID_SKYBOX_TILT };
|
||||
s16 fog_distance { -1 };
|
||||
float fog_start { -1.0f };
|
||||
float volumetric_light_strength { 0.0f };
|
||||
video::SColor fog_color; // override, only used if alpha > 0
|
||||
};
|
||||
|
||||
struct SunParams
|
||||
|
@ -102,6 +102,7 @@ public:
|
|||
sky.fog_sun_tint = video::SColor(255, 244, 125, 29);
|
||||
sky.fog_moon_tint = video::SColorf(0.5, 0.6, 0.8, 1).toSColor();
|
||||
sky.fog_tint_type = "default";
|
||||
sky.fog_color = video::SColor(0);
|
||||
return sky;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue