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

Configuration options for a LightBaker3D. More...

#include <GREM/graphics_3d/LightBaker3D.hpp>

Public Attributes

uint32_t skyIrradianceSampleCount = 4096
 Number of samples to use when baking the irradiance cubemap of skyboxes.
uint32_t skyReflectionSampleCount = 4096
 Number of samples to use when baking the reflection cubemap of skyboxes.
uint32_t lightProbeRenderResolution = 256
 Width, in texels, of the source cubemaps used to render the irradiance and distance maps of light probes.
float lightProbeNearZ = 0.001f
 Distance to the near plane of light probes.
float lightProbeFarZ = 100.0f
 Distance to the far plane of light probes.
float lightProbeExposure = 1.0f
 Camera exposure to use when baking the irradiance maps of light probes.
uint32_t lightProbeIrradianceSampleCount = 1024
 Number of samples to use when baking the irradiance maps of light probes.
uint32_t lightProbeDistanceSampleCount = 2048
 Number of samples to use when baking the distance maps of light probes.
float lightProbeDistanceSharpness = 50.0f
 Exponent of the cosine weight between normal and sample direction to use when baking the distance maps of light probes.
uint32_t reflectionProbeRenderResolution = 1024
 Width, in texels, of the source cubemaps used to render the reflection maps of reflection probes.
float reflectionProbeNearZ = 0.01f
 Distance to the near plane of reflection probes.
float reflectionProbeFarZ = 1000.0f
 Distance to the far plane of reflection probes.
float reflectionProbeExposure = 1.0f
 Camera exposure to use when baking the reflection maps of reflection probes.
uint32_t reflectionProbeReflectionSampleCount = 4096
 Number of samples to use when baking the reflection maps of reflection probes.

Detailed Description

Configuration options for a LightBaker3D.

Member Data Documentation

◆ skyIrradianceSampleCount

uint32_t grem::graphics::LightBaker3DOptions::skyIrradianceSampleCount = 4096

Number of samples to use when baking the irradiance cubemap of skyboxes.

Must be positive.

◆ skyReflectionSampleCount

uint32_t grem::graphics::LightBaker3DOptions::skyReflectionSampleCount = 4096

Number of samples to use when baking the reflection cubemap of skyboxes.

Must be positive.

◆ lightProbeRenderResolution

uint32_t grem::graphics::LightBaker3DOptions::lightProbeRenderResolution = 256

Width, in texels, of the source cubemaps used to render the irradiance and distance maps of light probes.

Must be a power of 2.

◆ lightProbeNearZ

float grem::graphics::LightBaker3DOptions::lightProbeNearZ = 0.001f

Distance to the near plane of light probes.

Must be less than lightProbeFarZ.

◆ lightProbeFarZ

float grem::graphics::LightBaker3DOptions::lightProbeFarZ = 100.0f

Distance to the far plane of light probes.

Must be greater than lightProbeNearZ.

◆ lightProbeExposure

float grem::graphics::LightBaker3DOptions::lightProbeExposure = 1.0f

Camera exposure to use when baking the irradiance maps of light probes.

◆ lightProbeIrradianceSampleCount

uint32_t grem::graphics::LightBaker3DOptions::lightProbeIrradianceSampleCount = 1024

Number of samples to use when baking the irradiance maps of light probes.

Must be positive.

◆ lightProbeDistanceSampleCount

uint32_t grem::graphics::LightBaker3DOptions::lightProbeDistanceSampleCount = 2048

Number of samples to use when baking the distance maps of light probes.

Must be positive.

◆ lightProbeDistanceSharpness

float grem::graphics::LightBaker3DOptions::lightProbeDistanceSharpness = 50.0f

Exponent of the cosine weight between normal and sample direction to use when baking the distance maps of light probes.

Must be greater than or equal to 1.

◆ reflectionProbeRenderResolution

uint32_t grem::graphics::LightBaker3DOptions::reflectionProbeRenderResolution = 1024

Width, in texels, of the source cubemaps used to render the reflection maps of reflection probes.

Must be a power of 2.

◆ reflectionProbeNearZ

float grem::graphics::LightBaker3DOptions::reflectionProbeNearZ = 0.01f

Distance to the near plane of reflection probes.

Must be less than reflectionProbeFarZ.

◆ reflectionProbeFarZ

float grem::graphics::LightBaker3DOptions::reflectionProbeFarZ = 1000.0f

Distance to the far plane of reflection probes.

Must be greater than reflectionProbeNearZ.

◆ reflectionProbeExposure

float grem::graphics::LightBaker3DOptions::reflectionProbeExposure = 1.0f

Camera exposure to use when baking the reflection maps of reflection probes.

◆ reflectionProbeReflectionSampleCount

uint32_t grem::graphics::LightBaker3DOptions::reflectionProbeReflectionSampleCount = 4096

Number of samples to use when baking the reflection maps of reflection probes.

Must be positive.


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