From f469a1d1e8413e07f3e3033e719161ffd17fe463 Mon Sep 17 00:00:00 2001 From: hachem Date: Fri, 22 Aug 2025 04:31:37 +0200 Subject: [add]: volumetric cloud rendering --- src/Engine/Engine.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/Engine/Engine.h') diff --git a/src/Engine/Engine.h b/src/Engine/Engine.h index 328435a..a0b25b5 100644 --- a/src/Engine/Engine.h +++ b/src/Engine/Engine.h @@ -100,6 +100,15 @@ namespace Donut void SetMaxStepsStatic(int steps) { m_MaxStepsStatic = steps; } void SetEarlyExitDistance(float distance) { m_EarlyExitDistance = distance; } + float GetDiskThickness() const { return m_DiskThickness; } + void SetDiskThickness(float thickness) { m_DiskThickness = thickness; } + + float GetDiskDensity() const { return m_DiskDensity; } + void SetDiskDensity(float density) { m_DiskDensity = density; } + + float GetRotationSpeed() const { return m_RotationSpeed; } + void SetRotationSpeed(float speed) { m_RotationSpeed = speed; } + void LoadObjectsFromScene(const std::vector& objects); void ExportHighResFrame(const std::string& filename, int width = 4096, int height = 3072); void PrintObjectInfo() const; @@ -131,8 +140,12 @@ namespace Donut Camera m_Camera; bool m_Gravity = false; - int m_MaxStepsMoving = 60000; - int m_MaxStepsStatic = 30000; + int m_MaxStepsMoving = 60000; + int m_MaxStepsStatic = 30000; float m_EarlyExitDistance = 5e11f; + + float m_DiskThickness = 0.1; + float m_DiskDensity = 1.2f; + float m_RotationSpeed = 1.0f; }; }; -- cgit v1.3