hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/scene/scene.h
blob: ada1878ea7480565f51d0ca31a45d98a07862a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include "scene_types.h"
#include "core/camera.h"

#include <string>
#include <vector>

namespace Donut
{
    class Scene
    {
    public:
        Scene();

        std::vector<SceneObject> objects{ SceneObject{ { 18.0f, 6.0f, 0.0f }, 2.0f, { 0.85f, 0.35f, 0.2f } } };
        int selected_object = 0;

        BlackHoleParams black_hole;

        std::string hdri_path = "assets/hdri/hdr_blue_nebulae_1.hdr";

        Camera sim_camera{ 60.0f, 16.0f / 9.0f, 0.1f, 100.0f };
        Camera scene_camera{ 45.0f, 16.0f / 9.0f, 0.1f, 1000.0f };

        auto reset_sim_camera() -> void;
        auto set_free_fly(bool enabled) -> void;
        auto is_free_fly() const -> bool { return sim_camera.get_camera_mode() == CameraMode::FPS; }
    };
}