Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::EnvMapRenderer Class Reference

Environment map renderer. More...

#include <EnvMapRenderer.hpp>

Classes

struct  CreateInfo
 Environment map renderer creation info. More...
 
struct  RenderAttribs
 Environment map renderer attributes. More...
 

Public Types

enum  OPTION_FLAGS : Uint32 { OPTION_FLAG_NONE = 0u , OPTION_FLAG_CONVERT_OUTPUT_TO_SRGB = 1u << 0u , OPTION_FLAG_COMPUTE_MOTION_VECTORS = 1u << 1u , OPTION_FLAG_USE_REVERSE_DEPTH = 1u << 2u }
 Option flags. More...
 

Public Member Functions

 EnvMapRenderer (const CreateInfo &CI)
 Creates a new environment map renderer.
 
void Prepare (IDeviceContext *pContext, const RenderAttribs &Attribs, const HLSL::ToneMappingAttribs &ToneMapping)
 Prepares the environment map renderer for rendering.
 
void Render (IDeviceContext *pContext)
 Renders the environment map.
 

Detailed Description

Environment map renderer.

Member Enumeration Documentation

◆ OPTION_FLAGS

Option flags.

Enumerator
OPTION_FLAG_NONE 

No options.

OPTION_FLAG_CONVERT_OUTPUT_TO_SRGB 

Manually convert shader output to sRGB color space.

OPTION_FLAG_COMPUTE_MOTION_VECTORS 

Compute motion vectors.

OPTION_FLAG_USE_REVERSE_DEPTH 

Use reverse depth (i.e. near plane is at 1.0, far plane is at 0.0).