aboutsummaryrefslogtreecommitdiff
path: root/src/rendering/black_hole_renderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering/black_hole_renderer.h')
-rw-r--r--src/rendering/black_hole_renderer.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rendering/black_hole_renderer.h b/src/rendering/black_hole_renderer.h
index c2cb2af..17c4254 100644
--- a/src/rendering/black_hole_renderer.h
+++ b/src/rendering/black_hole_renderer.h
@@ -7,10 +7,10 @@
namespace Donut
{
- // The black-hole view, written ONCE against the RHI. Each frame it ray-traces
+ // the black-hole view, written ONCE against the RHI. each frame it ray-traces
// the geodesic shader into an off-screen target (progressive resolution: a
// small target while the camera moves, a larger one once it settles) and then
- // upscales that target onto the swapchain. The Application owns the camera and
+ // upscales that target onto the swapchain. the Application owns the camera and
// the HDRI cubemap and passes them in.
struct GeodesicView
{
@@ -29,19 +29,19 @@ namespace Donut
auto init(RHI::Device& device) -> bool;
- // Off-screen geodesic pass (opens/closes its own render pass). Call before
+ // off-screen geodesic pass (opens/closes its own render pass). call before
// 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.
+ // (1 scene unit = 1 Schwarzschild radius). grid units == r_s.
auto render_geodesic(RHI::CommandList& cmd, const GeodesicView& view,
const BlackHoleParams& params,
const std::vector<SceneObject>& objects, RHI::Texture* cubemap) -> void;
- // Upscales the geodesic target onto the swapchain (call inside the open
+ // upscales the geodesic target onto the swapchain (call inside the open
// swapchain render pass, before ImGui).
auto blit(RHI::CommandList& cmd, int fb_width, int fb_height) -> void;
- // Renders one channel (0 colour, 1 redshift g, 2 emission T, 3 impact
+ // renders one channel (0 colour, 1 redshift g, 2 emission T, 3 impact
// parameter) into an arbitrary RGBA8 target — for high-res export.
auto render_export(RHI::CommandList& cmd, RHI::RenderTarget* target,
const GeodesicView& view, const BlackHoleParams& params,