Lysa  0.0
Lysa 3D Engine
RenderingConfiguration Struct Reference

Public Attributes

RendererType rendererType {RendererType::DEFERRED}
 
vireo::ImageFormat colorRenderingFormat {vireo::ImageFormat::R16G16B16A16_UNORM}
 Main color rendering pass frame buffer format. More...
 
vireo::ImageFormat swapChainFormat {vireo::ImageFormat::R8G8B8A8_UNORM}
 Postprocessing & swap chain image format. More...
 
vireo::ImageFormat depthStencilFormat {vireo::ImageFormat::D32_SFLOAT_S8_UINT}
 Depth and stencil buffer format. More...
 
vireo::MSAA msaa {vireo::MSAA::NONE}
 MSAA samples count. More...
 
vireo::PresentMode presentMode {vireo::PresentMode::IMMEDIATE}
 Presentation mode. More...
 
float3 clearColor {DEFAULT_CLEAR_COLOR}
 Frame buffer clear color. More...
 
uint32 framesInFlight {2}
 Number of simultaneous frames during rendering. More...
 
float gamma {2.4f}
 Gamma correction factor when using *_UNORM, *_SNORM or *_SFLOAT format. More...
 
float exposure {1.0f}
 Exposure correction factor. More...
 
ToneMappingType toneMappingType {ToneMappingType::ACES}
 Type of tone mapping shader when using HDR rendering formats R16G16B16A16_UNORM, R16G16B16A16_SFLOAT or R32G32B32A32_SFLOAT. More...
 
AntiAliasingType antiAliasingType {AntiAliasingType::SMAA}
 Type of antialiasing post-processing shader. More...
 
float fxaaSpanMax {8.0f}
 
float fxaaReduceMul {1.0f / 8.0f}
 
float fxaaReduceMin {1.0f / 128.0f}
 
float smaaEdgeThreshold {0.15f}
 
int smaaBlendMaxSteps {4}
 
bool bloomEnabled {true}
 Enable the bloom post-processing effect. More...
 
uint32 bloomBlurKernelSize {5}
 Bloom effect blur kernel size. More...
 
float bloomBlurStrength {1.2f}
 Bloom effect blur strength. More...
 
bool ssaoEnabled {true}
 Enable SSAO in the deferred renderer. More...
 
uint32 ssaoBlurKernelSize {3}
 SSAO blur kernel size. More...
 
uint32 ssaoSampleCount {16}
 SSAO sampling count. More...
 
float ssaoRadius {0.5f}
 SSAO sampling radius. More...
 
float ssaoBias {0.025f}
 SSAO self-shadowing bias. More...
 
float ssaoStrength {2.0f}
 SSAO strength. More...
 

Member Data Documentation

AntiAliasingType antiAliasingType {AntiAliasingType::SMAA}

Type of antialiasing post-processing shader.

uint32 bloomBlurKernelSize {5}

Bloom effect blur kernel size.

float bloomBlurStrength {1.2f}

Bloom effect blur strength.

bool bloomEnabled {true}

Enable the bloom post-processing effect.

float3 clearColor {DEFAULT_CLEAR_COLOR}

Frame buffer clear color.

vireo::ImageFormat colorRenderingFormat {vireo::ImageFormat::R16G16B16A16_UNORM}

Main color rendering pass frame buffer format.

vireo::ImageFormat depthStencilFormat {vireo::ImageFormat::D32_SFLOAT_S8_UINT}

Depth and stencil buffer format.

float exposure {1.0f}

Exposure correction factor.

uint32 framesInFlight {2}

Number of simultaneous frames during rendering.

float fxaaReduceMin {1.0f / 128.0f}
float fxaaReduceMul {1.0f / 8.0f}
float fxaaSpanMax {8.0f}
float gamma {2.4f}

Gamma correction factor when using *_UNORM, *_SNORM or *_SFLOAT format.

vireo::MSAA msaa {vireo::MSAA::NONE}

MSAA samples count.

vireo::PresentMode presentMode {vireo::PresentMode::IMMEDIATE}

Presentation mode.

RendererType rendererType {RendererType::DEFERRED}
int smaaBlendMaxSteps {4}
float smaaEdgeThreshold {0.15f}
float ssaoBias {0.025f}

SSAO self-shadowing bias.

uint32 ssaoBlurKernelSize {3}

SSAO blur kernel size.

bool ssaoEnabled {true}

Enable SSAO in the deferred renderer.

float ssaoRadius {0.5f}

SSAO sampling radius.

uint32 ssaoSampleCount {16}

SSAO sampling count.

float ssaoStrength {2.0f}

SSAO strength.

vireo::ImageFormat swapChainFormat {vireo::ImageFormat::R8G8B8A8_UNORM}

Postprocessing & swap chain image format.

ToneMappingType toneMappingType {ToneMappingType::ACES}

Type of tone mapping shader when using HDR rendering formats R16G16B16A16_UNORM, R16G16B16A16_SFLOAT or R32G32B32A32_SFLOAT.