diff options
| author | hachem <im@hachem.wtf> | 2026-08-23 21:55:36 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-23 21:55:36 +0200 |
| commit | 5ea6c14c0e14bacee766ce1280ab2c71564e05ec (patch) | |
| tree | 34620051e8eaf65db4ff9cd40ffd982a03e1ccc8 /src/scene/scene_types.h | |
| parent | 8742482311b86bb705d93336805ab26881e96070 (diff) | |
[feat]: implement ui layer arch
Diffstat (limited to 'src/scene/scene_types.h')
| -rw-r--r-- | src/scene/scene_types.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/scene/scene_types.h b/src/scene/scene_types.h new file mode 100644 index 0000000..d34983f --- /dev/null +++ b/src/scene/scene_types.h @@ -0,0 +1,32 @@ +#pragma once + +#include <glm/glm.hpp> + +namespace Donut +{ + // Backend-agnostic scene/black-hole data shared by the Application and the + // portable renderers (SceneRenderer, BlackHoleRenderer). The rendering itself + // is written once on the RHI (rendering/rhi.h); these are just the inputs. + + // A placeable/editable sphere in the world-builder scene view. The app owns + // the list; SceneRenderer draws it the same way on every backend. + struct SceneObject + { + glm::vec3 position = { 0.0f, 2.0f, 0.0f }; + float radius = 2.0f; + glm::vec3 color = { 0.85f, 0.35f, 0.2f }; + }; + + // Live-tunable black-hole / accretion-disk parameters. Radii are in + // Schwarzschild radii; the inner edge is clamped to the ISCO (3 r_s). + struct BlackHoleParams + { + float disk_inner_rs = 3.0f; // inner edge (x r_s) + float disk_outer_rs = 12.0f; // outer edge (x r_s) + float temperature = 4800.0f; // Kelvin at the flux peak (disk colour) + float brightness = 0.9f; // disk exposure + float turbulence = 0.4f; // 0 = smooth physical disk + int quality_steps = 15000; // geodesic integration steps + float fov_degrees = 60.0f; // camera field of view + }; +} |
