GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Renderer3DOptions Struct Reference

Configuration options for a Renderer3D. More...

#include <GREM/graphics_3d/Renderer3D.hpp>

Public Member Functions

constexpr bool operator== (const Renderer3DOptions &other) const noexcept=default
 Compare these options to another set of options for equality.

Public Attributes

uint32_t tileSize = 64
 Width or height of each screen tile, in pixels.
uint32_t depthBinCount = 1024
 Number of depth bins to use for culling items on the screen along the Z axis.
uint32_t specularSplitSumBRDFIntegrationMapResolution = 512
 The width, in texels, of the generated bidirectional reflectance distribution function (BRDF) integration map for split-sum approximation of ambient specular reflections.
uint32_t specularSplitSumBRDFIntegrationMapSampleCount = 2048
 Number of samples to use when generating the bidirectional reflectance distribution function (BRDF) integration map for split-sum approximation of ambient specular reflections.
float shadowMapDepthBiasSlopeFactor = 0.0f
 Slope-scaled depth bias factor to use in the shadow map shader.
float shadowMapDepthBiasConstantFactor = 1.0f
 Constant depth bias factor to use in the shadow map shader.

Detailed Description

Configuration options for a Renderer3D.

Member Function Documentation

◆ operator==()

bool grem::graphics::Renderer3DOptions::operator== ( const Renderer3DOptions & other) const
nodiscardconstexprdefaultnoexcept

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ tileSize

uint32_t grem::graphics::Renderer3DOptions::tileSize = 64

Width or height of each screen tile, in pixels.

Must be positive.

◆ depthBinCount

uint32_t grem::graphics::Renderer3DOptions::depthBinCount = 1024

Number of depth bins to use for culling items on the screen along the Z axis.

Must be positive.

◆ specularSplitSumBRDFIntegrationMapResolution

uint32_t grem::graphics::Renderer3DOptions::specularSplitSumBRDFIntegrationMapResolution = 512

The width, in texels, of the generated bidirectional reflectance distribution function (BRDF) integration map for split-sum approximation of ambient specular reflections.

Must be a power of 2.

◆ specularSplitSumBRDFIntegrationMapSampleCount

uint32_t grem::graphics::Renderer3DOptions::specularSplitSumBRDFIntegrationMapSampleCount = 2048

Number of samples to use when generating the bidirectional reflectance distribution function (BRDF) integration map for split-sum approximation of ambient specular reflections.

Must be positive.

◆ shadowMapDepthBiasSlopeFactor

float grem::graphics::Renderer3DOptions::shadowMapDepthBiasSlopeFactor = 0.0f

Slope-scaled depth bias factor to use in the shadow map shader.

◆ shadowMapDepthBiasConstantFactor

float grem::graphics::Renderer3DOptions::shadowMapDepthBiasConstantFactor = 1.0f

Constant depth bias factor to use in the shadow map shader.


The documentation for this struct was generated from the following file: