Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Config::Lighting Namespace Reference

Namespaces

namespace  ClusteredForward
 These settings control the clustered renderer and how we batch lights per tile & cluster.
 

Variables

constexpr U8 MAX_SHADOW_CASTING_DIRECTIONAL_LIGHTS = 2u
 How many lights (in order as passed to the shader for the node) should cast shadows.
 
constexpr U8 MAX_SHADOW_CASTING_POINT_LIGHTS = 4u
 
constexpr U8 MAX_SHADOW_CASTING_SPOT_LIGHTS = 6u
 
constexpr U8 MAX_SHADOW_CASTING_LIGHTS = MAX_SHADOW_CASTING_DIRECTIONAL_LIGHTS + MAX_SHADOW_CASTING_POINT_LIGHTS + MAX_SHADOW_CASTING_SPOT_LIGHTS
 Maximum number of shadow casting lights processed per frame.
 
constexpr U8 MAX_CSM_SPLITS_PER_LIGHT = 4u
 Used for CSM or PSSM to determine the maximum number of frustum splits.
 
constexpr U16 MAX_ACTIVE_LIGHTS_PER_FRAME = 1 << 12
 Maximum number of lights we process per frame. We need this upper bound for pre-allocating arrays and setting up shaders. Increasing it shouldn't hurt performance in a linear fashion.
 

Variable Documentation

◆ MAX_ACTIVE_LIGHTS_PER_FRAME

constexpr U16 Divide::Config::Lighting::MAX_ACTIVE_LIGHTS_PER_FRAME = 1 << 12
constexpr

Maximum number of lights we process per frame. We need this upper bound for pre-allocating arrays and setting up shaders. Increasing it shouldn't hurt performance in a linear fashion.

Definition at line 162 of file config.h.

◆ MAX_CSM_SPLITS_PER_LIGHT

constexpr U8 Divide::Config::Lighting::MAX_CSM_SPLITS_PER_LIGHT = 4u
constexpr

Used for CSM or PSSM to determine the maximum number of frustum splits.

Definition at line 159 of file config.h.

◆ MAX_SHADOW_CASTING_DIRECTIONAL_LIGHTS

constexpr U8 Divide::Config::Lighting::MAX_SHADOW_CASTING_DIRECTIONAL_LIGHTS = 2u
constexpr

How many lights (in order as passed to the shader for the node) should cast shadows.

Definition at line 151 of file config.h.

◆ MAX_SHADOW_CASTING_LIGHTS

constexpr U8 Divide::Config::Lighting::MAX_SHADOW_CASTING_LIGHTS = MAX_SHADOW_CASTING_DIRECTIONAL_LIGHTS + MAX_SHADOW_CASTING_POINT_LIGHTS + MAX_SHADOW_CASTING_SPOT_LIGHTS
constexpr

Maximum number of shadow casting lights processed per frame.

Definition at line 156 of file config.h.

◆ MAX_SHADOW_CASTING_POINT_LIGHTS

constexpr U8 Divide::Config::Lighting::MAX_SHADOW_CASTING_POINT_LIGHTS = 4u
constexpr

Definition at line 152 of file config.h.

◆ MAX_SHADOW_CASTING_SPOT_LIGHTS

constexpr U8 Divide::Config::Lighting::MAX_SHADOW_CASTING_SPOT_LIGHTS = 6u
constexpr

Definition at line 153 of file config.h.