ADD: BVH Selection triangle

This commit is contained in:
2025-11-19 23:33:05 +09:00
parent ac35de6104
commit 0fe7c0f975
10 changed files with 116 additions and 84 deletions

View File

@@ -149,7 +149,9 @@ void SceneManager::update_scene()
return m;
};
const float fov = glm::radians(70.f);
// Keep projection FOV in sync with the camera so that CPU ray picking
// matches what is rendered on-screen.
const float fov = glm::radians(mainCamera.fovDegrees);
const float aspect = (float) _context->getSwapchain()->windowExtent().width /
(float) _context->getSwapchain()->windowExtent().height;
const float nearPlane = 0.1f;