17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 23:17:30 +01:00

Replace cubemap scenery reflections with SSR, add Vulkan ray traced reflections

This commit is contained in:
2026-10-25 13:54:49 +01:00
parent 89f11895fc
commit f20b1a3071
45 changed files with 2725 additions and 174 deletions

View File

@@ -57,7 +57,7 @@ bool vulkan14_renderer::init_cull()
return false;
}
}
if ((false == cull.reflections.init(environment, device, ctx.pipelines, ctx.shaders, scene.pass_layout, &cull.main)) || (false == cull.hiz.init(device, ctx.pipelines, ctx.shaders, scene.pass_layout)))
if (false == cull.hiz.init(device, ctx.pipelines, ctx.shaders, scene.pass_layout))
{
return false;
}
@@ -90,7 +90,6 @@ void vulkan14_renderer::destroy_cull()
}
culls->clear();
}
cull.reflections.destroy(device);
cull.main.destroy(device);
cull.hiz.destroy(device);
cull.shadowfit.destroy(device);
@@ -140,10 +139,6 @@ void vulkan14_renderer::walk_region_begin()
passcull = &cull.cascades[m_shadowcascade];
m_shadowcasters.clear();
}
else if ((m_renderpass.draw_mode == rendermode::reflections) && Global.gfx_gpucull_reflections && (Global.reflectiontune.fidelity >= 1))
{
passcull = &cull.reflections;
}
}
}
Begin_Pass_Cull(passcull, (passcull == &cull.main));