mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-03 01:30:16 +01:00
feat(editor): far out the top view shows the base map of OpenStreetMap from geoportal.gov.pl in place of the imagery, tiles as large as the view needs, the ground not drawn under it nor streamed as far as the view; the tracks over it in the colour of the rails, blue by default, and the joints of the pieces left out far out
This commit is contained in:
@@ -2201,8 +2201,12 @@ void editor_mode::draw_build_overlay() const
|
||||
// in the 3D view only near the camera, where they can be told apart; from above all of them
|
||||
glm::dvec3 const eye{Global.pCamera.Pos};
|
||||
auto const in_reach = [&](glm::dvec3 const &Point) { return Global.EditorOrtho || glm::distance(Point, eye) <= kDotsRange; };
|
||||
// far out the joints of the pieces would cover the tracks, only the free ends are told
|
||||
auto const joints{false == Global.EditorOrtho || display.y <= 0.0f || 2.0 * static_cast<double>(Global.EditorOrthoExtent) / display.y <= 1.0};
|
||||
for (auto const *track : simulation::Paths.sequence())
|
||||
{
|
||||
if (false == joints)
|
||||
break;
|
||||
if (track == nullptr || track->m_editorremoved || track->m_paths.empty())
|
||||
continue;
|
||||
for (auto const &path : track->m_paths)
|
||||
|
||||
Reference in New Issue
Block a user