17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 17:29:14 +01:00

fix(render): dark parts of a cab and of the running gear are no longer crushed to black, as the AgX look raises its contrast power from 1.0 in the shadows up to 1.6 only from the middle tones on, which keeps the bright tones, the outside view and the night as they were but leaves black knobs, levers and lettering visible on a black desk; the light of a cab can be scaled with gfx.cab.ambient, 1.0 by default

This commit is contained in:
maj00r
2026-10-14 16:55:43 +02:00
parent 20cf81b362
commit 000b8656cc
4 changed files with 10 additions and 1 deletions

View File

@@ -1335,6 +1335,11 @@ global_settings::ConfigParse_gfx( cParser &Parser, std::string_view const Token
Parser.getTokens();
Parser >> RenderCabShadowsRange;
}
else if (Token == "gfx.cab.ambient")
{
Parser.getTokens();
Parser >> gfx_cab_ambient;
}
else if (Token == "gfx.smoke")
{
// smoke visualization toggle
@@ -1600,6 +1605,7 @@ global_settings::export_as_text( std::ostream &Output ) const {
<< shadowtune.range << " "
<< 0 << "\n";
export_as_text( Output, "gfx.shadows.cab.range", RenderCabShadowsRange );
export_as_text( Output, "gfx.cab.ambient", gfx_cab_ambient );
export_as_text( Output, "gfx.smoke", Smoke );
export_as_text( Output, "gfx.smoke.fidelity", SmokeFidelity );
export_as_text( Output, "smoothtraction", bSmoothTraction );