diff options
Diffstat (limited to 'src/rendering/black_hole_renderer.h')
| -rw-r--r-- | src/rendering/black_hole_renderer.h | 10 |
1 files changed, 7 insertions, 3 deletions
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 <glm/glm.hpp> +#include <vector> 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<SceneObject>& objects, RHI::Texture* cubemap) -> void; // Upscales the geodesic target onto the swapchain (call inside the open // swapchain render pass, before ImGui). |
