hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/engine/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/engine.h')
-rw-r--r--src/engine/engine.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/engine/engine.h b/src/engine/engine.h
index 0a50612..1c25466 100644
--- a/src/engine/engine.h
+++ b/src/engine/engine.h
@@ -35,7 +35,7 @@ namespace Donut
double m_radius;
double m_rs;
- BlackHole(glm::vec3 pos, float mass)
+ BlackHole(glm::vec3 pos, float mass)
: m_position(pos), m_mass(mass)
{
m_rs = 2.0 * G * m_mass / (c * c);
@@ -99,33 +99,33 @@ namespace Donut
int get_compute_height() const { return m_compute_height; }
int get_compute_width() const { return (m_width * m_compute_height) / m_height; }
void update_compute_dimensions();
-
+
int get_max_steps_moving() const { return m_max_steps_moving; }
int get_max_steps_static() const { return m_max_steps_static; }
float get_early_exit_distance() const { return m_early_exit_distance; }
void set_max_steps_moving(int steps) { m_max_steps_moving = steps; }
void set_max_steps_static(int steps) { m_max_steps_static = steps; }
void set_early_exit_distance(float distance) { m_early_exit_distance = distance; }
-
+
float get_disk_thickness() const { return m_disk_thickness; }
void set_disk_thickness(float thickness) { m_disk_thickness = thickness; }
-
+
float get_disk_density() const { return m_disk_density; }
void set_disk_density(float density) { m_disk_density = density; }
-
+
float get_rotation_speed() const { return m_rotation_speed; }
void set_rotation_speed(float speed) { m_rotation_speed = speed; }
-
+
float get_blur_strength() const { return m_blur_strength; }
void set_blur_strength(float strength) { m_blur_strength = strength; }
-
+
float get_glow_intensity() const { return m_glow_intensity; }
void set_glow_intensity(float intensity) { m_glow_intensity = intensity; }
-
+
void load_objects_from_scene(const std::vector<Donut::Object>& objects);
void export_high_res_frame(const std::string& filename, int width = 4096, int height = 3072);
void print_object_info() const;
-
+
void set_hdri_environment(Ref<CubemapTexture> hdri) { m_hdri_environment = hdri; }
Ref<CubemapTexture> get_hdri_environment() const { return m_hdri_environment; }
private:
@@ -161,12 +161,12 @@ namespace Donut
BlackHole m_sag_a;
Camera m_camera;
bool m_gravity = false;
-
+
int m_max_steps_moving = 60000;
int m_max_steps_static = 30000;
float m_early_exit_distance = 5.0e11f;
-
- float m_disk_thickness = 0.1f;
+
+ float m_disk_thickness = 0.1f;
float m_disk_density = 0.1f;
float m_rotation_speed = 1.0f;
float m_blur_strength = 2.0f;