Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
environmentcontext.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
11
//------------------------------------------------------------------------------
12
#include "
graphicscontext.h
"
13
namespace
Graphics
14
{
15
16
class
EnvironmentContext
:
public
GraphicsContext
17
{
18
__DeclarePluginContext
();
19
public
:
20
22
static
void
Create
(
const
Graphics::GraphicsEntityId
sun);
24
static
void
OnBeforeFrame
(
const
Graphics::FrameContext
& ctx);
26
static
void
RenderUI
(
const
Graphics::FrameContext
& ctx);
27
29
static
void
SetFogColor
(
const
Math::vec4
&
fogColor
);
31
static
void
SetFogDistances
(
const
float
nearFog,
const
float
farFog);
33
static
void
SetBloomColor
(
const
Math::vec4
&
bloomColor
);
35
static
void
SetBloomIntensity
(
const
float
intensity);
37
static
void
SetMaxLuminance
(
const
float
maxLuminance);
39
static
void
SetNumEnvironmentMips
(
const
int
mips);
40
};
41
42
}
// namespace Graphics
Graphics::EnvironmentContext
The environment context deals with anything related to the sky and atmosphere effects.
Definition
environmentcontext.h:17
Graphics::EnvironmentContext::SetNumEnvironmentMips
static void SetNumEnvironmentMips(const int mips)
set the number of global environment mips
Definition
environmentcontext.cc:290
Graphics::EnvironmentContext::SetFogColor
static void SetFogColor(const Math::vec4 &fogColor)
set the fog color
Definition
environmentcontext.cc:244
Graphics::EnvironmentContext::SetMaxLuminance
static void SetMaxLuminance(const float maxLuminance)
set the maximum allowed luminance by the eye adaptation
Definition
environmentcontext.cc:281
Graphics::EnvironmentContext::RenderUI
static void RenderUI(const Graphics::FrameContext &ctx)
render IMGUI
Definition
environmentcontext.cc:213
Graphics::EnvironmentContext::SetBloomColor
static void SetBloomColor(const Math::vec4 &bloomColor)
set the bloom color filter
Definition
environmentcontext.cc:263
Graphics::EnvironmentContext::OnBeforeFrame
static void OnBeforeFrame(const Graphics::FrameContext &ctx)
update shader server tick params per frame
Definition
environmentcontext.cc:135
Graphics::EnvironmentContext::__DeclarePluginContext
__DeclarePluginContext()
Graphics::EnvironmentContext::SetBloomIntensity
static void SetBloomIntensity(const float intensity)
Set intensity of bloom effect.
Definition
environmentcontext.cc:272
Graphics::EnvironmentContext::SetFogDistances
static void SetFogDistances(const float nearFog, const float farFog)
set the fog distances
Definition
environmentcontext.cc:253
Graphics::GraphicsContext::GraphicsContext
GraphicsContext()
constructor
Definition
graphicscontext.cc:14
graphicscontext.h
Graphics
Implements the shader server used by Vulkan.
Definition
cameramanager.h:22
Graphics::bloomColor
Math::vec4 bloomColor
Definition
environmentcontext.cc:27
Graphics::fogColor
Math::vec4 fogColor
Definition
environmentcontext.cc:30
Resources::Create
@ Create
Definition
resourceloader.h:52
Graphics::FrameContext
Definition
graphicsserver.h:31
Graphics::GraphicsEntityId
The graphics entity is only an Id, to which we can attach GraphicsContexts.
Definition
graphicsentity.h:16
Math::vec4
A 4D vector.
Definition
vec4.h:24
code
render
graphics
environmentcontext.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.