![]() |
Public API Reference |
![]() |
To help setting up a post effects manager for HDR rendering. More...
#include <csplugincommon/rendermanager/hdrhelper.h>
Public Types | |
enum | Quality { qualInt8, qualInt10, qualInt16, qualFloat16, qualFloat32 } |
Level of HDR quality. More... | |
Public Member Functions | |
PostEffectManager & | GetHDRPostEffects () |
Get the post processing effects manager which applies HDR tone mapping. | |
iShader * | GetMappingShader () |
Get the shader used for tonemapping the final image. | |
iShaderVariableContext * | GetMappingShaderVarContext () |
Get the shader variable context for the tonemapping stage. | |
PostEffectManager::Layer * | GetMeasureLayer () const |
Get the post processing effects layer that can be used for measuring image colors (before tonemapping). | |
void | SetMappingShader (iShader *shader) |
Set the shader used for tonemapping the final image. | |
bool | Setup (iObjectRegistry *objectReg, Quality quality, int colorRange) |
Set up a post processing effects manager for rendering to HDR textures. |
To help setting up a post effects manager for HDR rendering.
Usage:
Definition at line 48 of file hdrhelper.h.
Level of HDR quality.
Definition at line 52 of file hdrhelper.h.
Get the post processing effects manager which applies HDR tone mapping.
Definition at line 101 of file hdrhelper.h.
Get the shader used for tonemapping the final image.
Get the shader variable context for the tonemapping stage.
PostEffectManager::Layer* CS::RenderManager::HDRHelper::GetMeasureLayer | ( | ) | const [inline] |
Get the post processing effects layer that can be used for measuring image colors (before tonemapping).
Definition at line 114 of file hdrhelper.h.
void CS::RenderManager::HDRHelper::SetMappingShader | ( | iShader * | shader | ) |
Set the shader used for tonemapping the final image.
bool CS::RenderManager::HDRHelper::Setup | ( | iObjectRegistry * | objectReg, |
Quality | quality, | ||
int | colorRange | ||
) |
Set up a post processing effects manager for rendering to HDR textures.
objectReg | Pointer to the object registry. |
quality | Quality of the intermediate textures rendered to. |
colorRange | Fixed range of colors for integer texture qualities. Typical values are 16 for qualInt16 and 4 for qualInt8. When a HDR exposure control is used this range may change dynamically. |