mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 12:09:19 +02:00
feat(track): where two rails share a running surface it takes the texture whose running surface is brighter; the brightness is read from the texture file over the u range of the rail head top, the shared parts are the block of crossing grooved rails, the nose of an acute frog from its tip to the end of the V, the through rail across a wide or grooved crossing, the frog of a switch, and the stock rails of a switch with frogs up to half the blade length where the blade grows to a full head
This commit is contained in:
@@ -196,7 +196,13 @@ void editor_mode::selftest_step()
|
||||
std::uint64_t hash{1469598103934665603ull};
|
||||
std::size_t count{0};
|
||||
int chunks{0};
|
||||
for (auto const *sequence : {&track->Geometry1, &track->Geometry2, &track->GeometryCut1, &track->GeometryCut2})
|
||||
std::vector<TTrack::geometryhandle_sequence const *> sequences{&track->Geometry1, &track->Geometry2, &track->GeometryCut1, &track->GeometryCut2};
|
||||
for (auto const &tread : track->GeometryTreads)
|
||||
{
|
||||
sequences.push_back(&tread.geometry);
|
||||
sequences.push_back(&tread.cuts);
|
||||
}
|
||||
for (auto const *sequence : sequences)
|
||||
{
|
||||
for (auto const &geometry : *sequence)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user