Nebula
Loading...
Searching...
No Matches
Graphics::EnvironmentContext Class Reference

#include <environmentcontext.h>

Detailed Description

The environment context deals with anything related to the sky and atmosphere effects.

Inherits Graphics::GraphicsContext.

Static Public Member Functions

static void Create (const Graphics::GraphicsEntityId sun)
 create context
 
static void OnBeforeFrame (const Graphics::FrameContext &ctx)
 update shader server tick params per frame
 
static void RenderUI (const Graphics::FrameContext &ctx)
 render IMGUI
 
static void SetFogColor (const Math::vec4 &fogColor)
 set the fog color
 
static void SetFogDistances (const float nearFog, const float farFog)
 set the fog distances
 
static void SetBloomColor (const Math::vec4 &bloomColor)
 set the bloom color filter
 
static void SetBloomIntensity (const float intensity)
 Set intensity of bloom effect.
 
static void SetMaxLuminance (const float maxLuminance)
 set the maximum allowed luminance by the eye adaptation
 
static void SetNumEnvironmentMips (const int mips)
 set the number of global environment mips
 

Private Member Functions

 __DeclarePluginContext ()
 

Additional Inherited Members

- Public Member Functions inherited from Graphics::GraphicsContext
 GraphicsContext ()
 constructor
 
virtual ~GraphicsContext ()
 destructor
 
- Static Protected Member Functions inherited from Graphics::GraphicsContext
static void InternalRegisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
static void InternalDeregisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
template<class ID_ALLOCATOR >
static void InternalDefragment (ID_ALLOCATOR &allocator, Graphics::GraphicsContextState &&state)
 

Member Function Documentation

◆ __DeclarePluginContext()

Graphics::EnvironmentContext::__DeclarePluginContext ( )
private

◆ Create()

void Graphics::EnvironmentContext::Create ( const Graphics::GraphicsEntityId sun)
static

create context

◆ OnBeforeFrame()

void Graphics::EnvironmentContext::OnBeforeFrame ( const Graphics::FrameContext & ctx)
static

update shader server tick params per frame

◆ RenderUI()

void Graphics::EnvironmentContext::RenderUI ( const Graphics::FrameContext & ctx)
static

render IMGUI

◆ SetBloomColor()

void Graphics::EnvironmentContext::SetBloomColor ( const Math::vec4 & bloomColor)
static

set the bloom color filter

◆ SetBloomIntensity()

void Graphics::EnvironmentContext::SetBloomIntensity ( const float intensity)
static

Set intensity of bloom effect.

◆ SetFogColor()

void Graphics::EnvironmentContext::SetFogColor ( const Math::vec4 & fogColor)
static

set the fog color

◆ SetFogDistances()

void Graphics::EnvironmentContext::SetFogDistances ( const float nearFog,
const float farFog )
static

set the fog distances

◆ SetMaxLuminance()

void Graphics::EnvironmentContext::SetMaxLuminance ( const float maxLuminance)
static

set the maximum allowed luminance by the eye adaptation

◆ SetNumEnvironmentMips()

void Graphics::EnvironmentContext::SetNumEnvironmentMips ( const int mips)
static

set the number of global environment mips


The documentation for this class was generated from the following files: