Skip to content

Commit

Permalink
ed ror fog mul, lower clouds
Browse files Browse the repository at this point in the history
  • Loading branch information
cryham committed Feb 27, 2024
1 parent abed66c commit 4b480c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/editor/ExportRoR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ void ExportRoR::ExportTrack() // whole, full
trn << "\n";

trn << "CaelumConfigFile = " + name + ".os\n";
trn << "CaelumFogStart = " << sc->fogStart << "\n"; // fog
trn << "CaelumFogEnd = " << sc->fogEnd << "\n";
trn << "CaelumFogStart = " << sc->fogStart * cfg->fogMul << "\n"; // fog
trn << "CaelumFogEnd = " << sc->fogEnd * cfg->fogMul << "\n";

trn << "SandStormCubeMap = tracks/skyboxcol\n"; // sky meh-
trn << "Gravity = " << -sc->gravity << "\n";
Expand Down
6 changes: 3 additions & 3 deletions src/editor/ExportRoR_WaterSky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,23 @@ void ExportRoR::ExportWaterSky()
os << " {\n";
os << " cloud_layer low\n";
os << " {\n";
os << " height 2000\n";
os << " height 500\n";
os << " coverage "<< min(cld, 0.2f) <<"\n";
// os << " cloud_uv_factor " << 500 <<"\n"; //..cd
os << " }\n";
if (cld >= 0.4f)
{
os << " cloud_layer mid\n";
os << " {\n";
os << " height 2700\n";
os << " height 700\n";
os << " coverage "<< min(cld, 0.6f) <<"\n";
os << " }\n";
}
if (cld >= 0.7f)
{
os << " cloud_layer high\n";
os << " {\n";
os << " height 3500\n"; // vis far is 5000 max
os << " height 1000\n"; //! vis cut off, far is 5000 max
os << " coverage "<< min(cld, 1.0f) <<"\n";
os << " }\n";
}
Expand Down

0 comments on commit 4b480c3

Please sign in to comment.