17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-31 22:49:05 +01:00

Shade the sky and the sun by the scenery around the camera instead of the track environment flags

This commit is contained in:
2026-10-27 16:02:36 +01:00
parent 9dde5b0e5e
commit 2a876befb0
35 changed files with 2351 additions and 55 deletions

View File

@@ -168,6 +168,10 @@ std::string vulkan14_renderer::scene_info()
{
text += " " + scene.cabprobe.info() + "\n";
}
if (Global.gfx_skyvisibility > 0)
{
text += " " + scene.skyocclusion.info() + "\n";
}
text += cascades + line(" submodels:", colour.submodels, shadowstats.submodels) + line(" paths: ", colour.paths, shadowstats.paths) +
line(" shapes: ", colour.shapes, shadowstats.shapes) + " traction: " + to_string(colour.traction, 7) + "\n" + " lines: " + to_string(colour.lines, 7) + "\n" +
"particles: " + to_string(colour.particles, 7) + "\nlights: " + to_string(static_cast<int>(m_lights_lit), 7) + " (" + std::to_string(m_lights_dropped) + " over capacity), " +
@@ -333,6 +337,8 @@ void vulkan14_renderer::draw_debug_ui()
}
}
ImGui::Separator();
scene.skyocclusion.draw_debug_ui();
ImGui::Separator();
std::string raytracing;
if (m_context->scene.raytracing)
{