Nebula
Loading...
Searching...
No Matches
environmentcontext.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11//------------------------------------------------------------------------------
12#include "graphicscontext.h"
13namespace Graphics
14{
15
17{
19public:
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
The environment context deals with anything related to the sky and atmosphere effects.
Definition environmentcontext.h:17
static void SetNumEnvironmentMips(const int mips)
set the number of global environment mips
Definition environmentcontext.cc:291
static void SetFogColor(const Math::vec4 &fogColor)
set the fog color
Definition environmentcontext.cc:245
static void SetMaxLuminance(const float maxLuminance)
set the maximum allowed luminance by the eye adaptation
Definition environmentcontext.cc:282
static void RenderUI(const Graphics::FrameContext &ctx)
render IMGUI
Definition environmentcontext.cc:214
static void SetBloomColor(const Math::vec4 &bloomColor)
set the bloom color filter
Definition environmentcontext.cc:264
static void OnBeforeFrame(const Graphics::FrameContext &ctx)
update shader server tick params per frame
Definition environmentcontext.cc:136
static void SetBloomIntensity(const float intensity)
Set intensity of bloom effect.
Definition environmentcontext.cc:273
static void SetFogDistances(const float nearFog, const float farFog)
set the fog distances
Definition environmentcontext.cc:254
Definition graphicscontext.h:165
Implements the shader server used by Vulkan.
Definition cameramanager.h:21
Math::vec4 bloomColor
Definition environmentcontext.cc:28
Math::vec4 fogColor
Definition environmentcontext.cc:31
@ Create
Definition resourceloader.h:52
Definition graphicsserver.h:31
The graphics entity is only an Id, to which we can attach GraphicsContexts.
Definition graphicsentity.h:16
A 4D vector.
Definition vec4.h:24