Nebula
Toggle main menu visibility
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
"
23
#include "
resources/resourceid.h
"
24
25
namespace
GraphicsFeature
26
{
27
28
class
EnvironmentPanel
final :
public
Editor::EditorPanel
29
{
30
__DeclareClass
(
EnvironmentPanel
)
31
public
:
32
EnvironmentPanel
();
33
virtual
~EnvironmentPanel
();
34
35
void
Draw()
override
;
36
37
protected
:
38
bool
OnSetup()
override
;
39
40
private
:
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
//------------------------------------------------------------------------------
EnvironmentPanel
The environment the scene is rendered in: the sun, the global fog, the bloom and whether the terrain ...
IO::Path
A path is an abstraction around file paths.
Definition
path.h:26
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
GraphicsFeature
Definition
graphicsfeatureunit.cc:66
path.h
resourceid.h
__DeclareClass
#define __DeclareClass(type)
vec3.h
code
addons
graphicsfeature
editor
environmentpanel.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.