Nebula
Loading...
Searching...
No Matches
environmentpanel.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
18//------------------------------------------------------------------------------
19#if WITH_NEBULA_EDITOR
20#include "neweditor/core/editorpanel.h"
21#include "io/path.h"
22#include "math/vec3.h"
24
25namespace GraphicsFeature
26{
27
28class EnvironmentPanel final : public Editor::EditorPanel
29{
31public:
33 virtual ~EnvironmentPanel();
34
35 void Draw() override;
36
37protected:
38 bool OnSetup() override;
39
40private:
42 void ApplySunDirection();
44 void SetBloomDirt(const IO::Path& texture);
45
47 void CommandEnvironment(const Util::Array<Util::String>& args);
48
50 float azimuth;
51 float zenith;
52 IO::Path bloomDirt;
53 Resources::ResourceId bloomDirtResource;
54};
55
56} // namespace GraphicsFeature
57#endif // WITH_NEBULA_EDITOR
58//------------------------------------------------------------------------------
The environment the scene is rendered in: the sun, the global fog, the bloom and whether the terrain ...
A path is an abstraction around file paths.
Definition path.h:26
Nebula's dynamic array class.
Definition array.h:61
Definition graphicsfeatureunit.cc:66
#define __DeclareClass(type)