18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 18:35:00 +01:00

Clouds and fog tweaks

This commit is contained in:
2026-11-17 01:02:52 +01:00
parent 9071d3f4d3
commit 91c2d3aba9
10 changed files with 380 additions and 63 deletions

View File

@@ -2246,6 +2246,8 @@ global_settings::ConfigParse_gfx_sky( cParser &Parser, std::string_view const To
else if( Token == "gfx.fog.shadows" ) { readswitch( gfx_fog_shadows ); }
else if( Token == "gfx.fog.temporal" ) { readswitch( gfx_fog_temporal ); }
else if( Token == "gfx.fog.temporal.share" ) { readvalue( gfx_fog_temporal_share, 0.02f, 1.f ); }
else if( Token == "gfx.weather.occlusion" ) { readswitch( gfx_weather_occlusion ); }
else if( Token == "gfx.clouds.interleave" ) { readswitch( gfx_clouds_interleave ); }
else if( Token == "gfx.clouds" ) {
// no, or the quality: low, medium (yes), high, ultra
Parser.getTokens( 1 );
@@ -2667,6 +2669,8 @@ global_settings::export_as_text( std::ostream &Output ) const {
export_as_text( Output, "gfx.fog.shadows", gfx_fog_shadows );
export_as_text( Output, "gfx.fog.temporal", gfx_fog_temporal );
export_as_text( Output, "gfx.fog.temporal.share", gfx_fog_temporal_share );
export_as_text( Output, "gfx.weather.occlusion", gfx_weather_occlusion );
export_as_text( Output, "gfx.clouds.interleave", gfx_clouds_interleave );
export_as_text( Output, "gfx.clouds", std::string{ gfx_clouds == 1 ? "low" : gfx_clouds == 2 ? "medium" : gfx_clouds == 3 ? "high" : gfx_clouds == 4 ? "ultra" : "no" } );
export_as_text( Output, "gfx.clouds.distance", gfx_clouds_distance );
export_as_text( Output, "gfx.clouds.shadows", gfx_clouds_shadows );

View File

@@ -628,6 +628,10 @@ struct global_settings {
bool gfx_clouds_shadows { true };
int gfx_clouds_shadows_size { 512 };
float gfx_clouds_shadows_range { 16000.f };
// the clouds and the cells of the fog volume the scenery hid in the last frame aren't worked out anew (the vulkan renderer)
bool gfx_weather_occlusion { true };
// a quarter of the pixels of the clouds of the main view is marched a frame, the image made of the last ones (the vulkan renderer)
bool gfx_clouds_interleave { true };
// stars from the catalogue, and their brightness
bool gfx_stars { true };
float gfx_stars_brightness { 1.f };