17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 01:30:16 +01:00

Vulkan ray tracing: include tracks and roads, build triangle strips and fans

This commit is contained in:
2026-10-25 15:35:26 +01:00
parent cdacb4110b
commit 08f4f6ed60
5 changed files with 46 additions and 13 deletions

View File

@@ -482,6 +482,8 @@ void scene_walk::Render(cell_sequence::iterator First, cell_sequence::iterator L
// opaque non-instanced shapes
for (auto const &shape : cell->m_shapesopaque)
Render(shape, false);
// tracks: the ray traced reflections (the one user of this mode) show the trackbed and the platforms made of roads
Render(std::begin(cell->m_paths), std::end(cell->m_paths));
// post-render cleanup
::glPopMatrix();