载入中...
搜索中...
未找到
eve::graphics::ShadowConfig结构体 参考

ShadowConfig public API. 更多...

#include <Shadow.h>

静态 Public 属性

static constexpr int kCascades = 3
 
static constexpr int kLocalSlots = 4
 Extra depth-array layers for spot (perspective) local shadows.
 
static constexpr int kTotalLayers = kCascades + kLocalSlots
 
static constexpr int kMapSize = 2048
 
static constexpr float kSplitLambda = 0.7f
 
static constexpr float kMaxDistance = 64.f
 

详细描述

ShadowConfig public API.

在文件 Shadow.h 第 23 行定义.

类成员变量说明

◆ kCascades

constexpr int eve::graphics::ShadowConfig::kCascades = 3
staticconstexpr

◆ kLocalSlots

constexpr int eve::graphics::ShadowConfig::kLocalSlots = 4
staticconstexpr

Extra depth-array layers for spot (perspective) local shadows.

在文件 Shadow.h 第 26 行定义.

被这些函数引用 eve::graphics::selectShadowCasters().

◆ kMapSize

constexpr int eve::graphics::ShadowConfig::kMapSize = 2048
staticconstexpr

在文件 Shadow.h 第 28 行定义.

◆ kMaxDistance

constexpr float eve::graphics::ShadowConfig::kMaxDistance = 64.f
staticconstexpr

Practical CSM range. Camera far planes for large architecture are often hundreds of meters; 3×2048² cascades over that range have no resolution.

在文件 Shadow.h 第 32 行定义.

被这些函数引用 eve::graphics::buildDirectionalCSM().

◆ kSplitLambda

constexpr float eve::graphics::ShadowConfig::kSplitLambda = 0.7f
staticconstexpr

在文件 Shadow.h 第 29 行定义.

被这些函数引用 eve::graphics::buildDirectionalCSM().

◆ kTotalLayers

constexpr int eve::graphics::ShadowConfig::kTotalLayers = kCascades + kLocalSlots
staticconstexpr

该结构体的文档由以下文件生成: