diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 18:28:39 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 18:28:39 +0200 |
| commit | a34c49f103c8950a57687ea3d866c244d95b4414 (patch) | |
| tree | ff268f4a7f52769a252443d6f2822c9814e3bb1c /src/rendering/scene_renderer.h | |
| parent | 06398a7a176e123506de6e8851866a8bec0b3427 (diff) | |
[docs]: added a few comments cause i wont be able to read this in a week's time
Diffstat (limited to 'src/rendering/scene_renderer.h')
| -rw-r--r-- | src/rendering/scene_renderer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rendering/scene_renderer.h b/src/rendering/scene_renderer.h index f7ff992..69ab2bc 100644 --- a/src/rendering/scene_renderer.h +++ b/src/rendering/scene_renderer.h @@ -7,9 +7,9 @@ namespace Donut { - // The world-builder scene view (skybox + lit spheres + reference grid), + // the world-builder scene view (skybox + lit spheres + reference grid), // written ONCE against the RHI so it renders identically on every backend. - // The Application owns the camera, the object list and the HDRI cubemap and + // the Application owns the camera, the object list and the HDRI cubemap and // passes them in each frame; this class owns only the GPU resources (meshes, // pipelines, per-object uniform buffers) and records the draws. struct CameraView @@ -24,10 +24,10 @@ namespace Donut class SceneRenderer { public: - // Builds the grid/sphere/skybox meshes and pipelines on the given device. + // builds the grid/sphere/skybox meshes and pipelines on the given device. auto init(RHI::Device& device) -> bool; - // Records the scene into the currently-open swapchain render pass. `cubemap` + // records the scene into the currently-open swapchain render pass. `cubemap` // is the shared HDRI environment (sphere ambient + skybox background). auto render(RHI::CommandList& cmd, const CameraView& cam, const std::vector<SceneObject>& objects, int selected, |
