Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::light::shadowmap_params Struct Reference

Struct representing common shadow map parameters. More...

#include <light.h>

Classes

struct  esm_impl_params
 Struct representing implementation parameters for ESM shadow mapping. More...
 
struct  hard_impl_params
 Struct representing implementation parameters for hard shadow mapping. More...
 
struct  pcf_impl_params
 Struct representing implementation parameters for PCF shadow mapping. More...
 
struct  pcss_impl_params
 Struct representing implementation parameters for PCSS shadow mapping. More...
 
struct  vsm_impl_params
 Struct representing implementation parameters for VSM shadow mapping. More...
 

Public Attributes

sm_depth depth = sm_depth::invz
 Depth method for shadow mapping.
 
sm_impl type = sm_impl::pcf
 Implementation type for shadow mapping.
 
sm_resolution resolution = sm_resolution::high
 Resolution of the shadow map.
 
float near_plane {0.2f}
 Near plane distance for shadow mapping.
 
float far_plane {550.0f}
 Far plane distance for shadow mapping.
 
float bias {0.00100f}
 Bias for shadow mapping.
 
float normal_bias {0.1300f}
 Normal bias for shadow mapping.
 
hard_impl_params hard
 
pcf_impl_params pcf
 
pcss_impl_params pcss
 
vsm_impl_params vsm
 
esm_impl_params esm
 
bool show_coverage {false}
 Whether to show shadow map coverage.
 

Detailed Description

Struct representing common shadow map parameters.

Definition at line 217 of file light.h.

Member Data Documentation

◆ bias

float unravel::light::shadowmap_params::bias {0.00100f}

Bias for shadow mapping.

Definition at line 230 of file light.h.

◆ depth

sm_depth unravel::light::shadowmap_params::depth = sm_depth::invz

Depth method for shadow mapping.

Definition at line 220 of file light.h.

◆ esm

esm_impl_params unravel::light::shadowmap_params::esm

Definition at line 303 of file light.h.

◆ far_plane

float unravel::light::shadowmap_params::far_plane {550.0f}

Far plane distance for shadow mapping.

Definition at line 228 of file light.h.

◆ hard

hard_impl_params unravel::light::shadowmap_params::hard

Definition at line 299 of file light.h.

◆ near_plane

float unravel::light::shadowmap_params::near_plane {0.2f}

Near plane distance for shadow mapping.

Definition at line 226 of file light.h.

◆ normal_bias

float unravel::light::shadowmap_params::normal_bias {0.1300f}

Normal bias for shadow mapping.

Definition at line 232 of file light.h.

◆ pcf

pcf_impl_params unravel::light::shadowmap_params::pcf

Definition at line 300 of file light.h.

◆ pcss

pcss_impl_params unravel::light::shadowmap_params::pcss

Definition at line 301 of file light.h.

◆ resolution

sm_resolution unravel::light::shadowmap_params::resolution = sm_resolution::high

Resolution of the shadow map.

Definition at line 224 of file light.h.

◆ show_coverage

bool unravel::light::shadowmap_params::show_coverage {false}

Whether to show shadow map coverage.

Definition at line 307 of file light.h.

◆ type

sm_impl unravel::light::shadowmap_params::type = sm_impl::pcf

Implementation type for shadow mapping.

Definition at line 222 of file light.h.

◆ vsm

vsm_impl_params unravel::light::shadowmap_params::vsm

Definition at line 302 of file light.h.


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