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

Struct representing common shadow map parameters. More...

#include <light.h>

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.00110f}
 Bias for shadow mapping.
 
float normal_bias {0.015f}
 Normal bias for shadow mapping.
 
bool show_coverage {false}
 Whether to show shadow map coverage.
 

Detailed Description

Struct representing common shadow map parameters.

Definition at line 220 of file light.h.

Member Data Documentation

◆ bias

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

Bias for shadow mapping.

Definition at line 233 of file light.h.

◆ depth

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

Depth method for shadow mapping.

Definition at line 223 of file light.h.

◆ far_plane

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

Far plane distance for shadow mapping.

Definition at line 231 of file light.h.

◆ near_plane

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

Near plane distance for shadow mapping.

Definition at line 229 of file light.h.

◆ normal_bias

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

Normal bias for shadow mapping.

Definition at line 235 of file light.h.

◆ resolution

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

Resolution of the shadow map.

Definition at line 227 of file light.h.

◆ show_coverage

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

Whether to show shadow map coverage.

Definition at line 258 of file light.h.

◆ type

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

Implementation type for shadow mapping.

Definition at line 225 of file light.h.


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