From 90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 22:39:47 +0200 Subject: [feat]: wire in scene into the simulation engine --- src/rendering/black_hole_renderer.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/rendering/black_hole_renderer.h') diff --git a/src/rendering/black_hole_renderer.h b/src/rendering/black_hole_renderer.h index 63c5aa2..2ae03dd 100644 --- a/src/rendering/black_hole_renderer.h +++ b/src/rendering/black_hole_renderer.h @@ -1,8 +1,9 @@ #pragma once #include "rhi.h" -#include "scene/scene_types.h" // BlackHoleParams +#include "scene/scene_types.h" // BlackHoleParams, SceneObject #include +#include namespace Donut { @@ -29,9 +30,12 @@ namespace Donut auto init(RHI::Device& device) -> bool; // Off-screen geodesic pass (opens/closes its own render pass). Call before - // the swapchain pass; `cubemap` is the shared HDRI environment. + // the swapchain pass; `cubemap` is the shared HDRI environment. `objects` + // are the Scene's spheres — ray-traced as lensed spheres around the hole + // (1 scene unit = 1 Schwarzschild radius). Grid units == r_s. auto render_geodesic(RHI::CommandList& cmd, const GeodesicView& view, - const BlackHoleParams& params, RHI::Texture* cubemap) -> void; + const BlackHoleParams& params, + const std::vector& objects, RHI::Texture* cubemap) -> void; // Upscales the geodesic target onto the swapchain (call inside the open // swapchain render pass, before ImGui). -- cgit v1.3