载入中...
搜索中...
未找到
CPU-built clustered lighting upload for one frame/camera. Point lights are clustered; directional lights become the primary dir (first by intensity). 更多...
#include <ClusteredLight.h>
Public 属性 | |
| glm::vec4 | ambient {0.12f, 0.12f, 0.14f, 0.f} |
| glm::vec4 | gridInfo |
| glm::vec4 | clipInfo {0.1f, 100.f, 1.f, 1.f} |
| glm::mat4 | view {1.f} |
| glm::vec4 | primaryDir {0.4f, 1.f, 0.3f, 0.f} |
| glm::vec4 | primaryColor {1.f, 1.f, 1.f, 1.f} |
| std::vector< ClusteredLightGpu > | lights |
| std::vector< ClusterTableEntry > | clusterTable |
| std::vector< uint32_t > | lightIndices |
| bool | active = false |
详细描述
CPU-built clustered lighting upload for one frame/camera. Point lights are clustered; directional lights become the primary dir (first by intensity).
在文件 ClusteredLight.h 第 32 行定义.
类成员变量说明
◆ active
| bool eve::graphics::ClusteredLightingUpload::active = false |
◆ ambient
在文件 ClusteredLight.h 第 33 行定义.
被这些函数引用 eve::graphics::buildClusteredLighting() , 以及 eve::graphics::vulkan::Graphics::drawMeshShader().
◆ clipInfo
◆ clusterTable
| std::vector<ClusterTableEntry> eve::graphics::ClusteredLightingUpload::clusterTable |
在文件 ClusteredLight.h 第 41 行定义.
◆ gridInfo
| glm::vec4 eve::graphics::ClusteredLightingUpload::gridInfo |
初始值:
{float(ClusteredLightConfig::kTilesX), float(ClusteredLightConfig::kTilesY),
float(ClusteredLightConfig::kSlices), 0.f}
static constexpr int kTilesY
Definition ClusteredLight.h:14
static constexpr int kSlices
Definition ClusteredLight.h:15
static constexpr int kTilesX
Definition ClusteredLight.h:13
在文件 ClusteredLight.h 第 34 行定义.
◆ lightIndices
| std::vector<uint32_t> eve::graphics::ClusteredLightingUpload::lightIndices |
在文件 ClusteredLight.h 第 42 行定义.
◆ lights
| std::vector<ClusteredLightGpu> eve::graphics::ClusteredLightingUpload::lights |
在文件 ClusteredLight.h 第 40 行定义.
◆ primaryColor
在文件 ClusteredLight.h 第 39 行定义.
◆ primaryDir
在文件 ClusteredLight.h 第 38 行定义.
◆ view
| glm::mat4 eve::graphics::ClusteredLightingUpload::view {1.f} |
在文件 ClusteredLight.h 第 37 行定义.
该结构体的文档由以下文件生成:
- src/modules/graphics/ClusteredLight.h