17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 15:07:29 +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

@@ -1821,7 +1821,7 @@ void vulkan14_renderer::gather_ray_draw(gfx::geometry_handle const &Geometry)
return;
}
auto const &chunk{static_cast<vk14::vulkan14_geometrybank *>(m_banks[Geometry.bank - 1])->last()};
if ((chunk.topology != VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST) || (chunk.vertex_address == 0))
if (((chunk.topology != VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST) && (chunk.topology != VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP) && (chunk.topology != VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN)) || (chunk.vertex_address == 0))
{
return;
}