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 |
| uint32_t | truncatedLightCount = 0 |
| Number of input local lights rejected by the frame-wide 256-light budget. | |
| uint32_t | overflowClusterCount = 0 |
| Number of clusters whose candidate list exceeded the per-cluster budget. | |
| uint32_t | droppedLightReferenceCount = 0 |
| Total cluster-to-light references removed by per-cluster truncation. | |
| 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 第 33 行定义.
类成员变量说明
◆ active
| bool eve::graphics::ClusteredLightingUpload::active = false |
在文件 ClusteredLight.h 第 51 行定义.
被这些函数引用 eve::graphics::vulkan::Graphics::drawDeferredLighting(), eve::graphics::RenderSystem3D::render(), eve::graphics::RenderSystem3D::renderToCanvas(), eve::graphics::vulkan::Graphics::setMesh3DClusteredLighting() , 以及 eve::graphics::webgpu::Graphics::setMesh3DClusteredLighting().
◆ ambient
在文件 ClusteredLight.h 第 34 行定义.
被这些函数引用 eve::graphics::buildClusteredLighting() , 以及 eve::graphics::vulkan::Graphics::drawDeferredLighting().
◆ clipInfo
◆ clusterTable
| std::vector<ClusterTableEntry> eve::graphics::ClusteredLightingUpload::clusterTable |
在文件 ClusteredLight.h 第 43 行定义.
◆ droppedLightReferenceCount
| uint32_t eve::graphics::ClusteredLightingUpload::droppedLightReferenceCount = 0 |
Total cluster-to-light references removed by per-cluster truncation.
在文件 ClusteredLight.h 第 50 行定义.
◆ gridInfo
| glm::vec4 eve::graphics::ClusteredLightingUpload::gridInfo |
在文件 ClusteredLight.h 第 35 行定义.
被这些函数引用 eve::graphics::vulkan::Graphics::drawDeferredLighting().
◆ lightIndices
| std::vector<uint32_t> eve::graphics::ClusteredLightingUpload::lightIndices |
在文件 ClusteredLight.h 第 44 行定义.
◆ lights
| std::vector<ClusteredLightGpu> eve::graphics::ClusteredLightingUpload::lights |
在文件 ClusteredLight.h 第 42 行定义.
◆ overflowClusterCount
| uint32_t eve::graphics::ClusteredLightingUpload::overflowClusterCount = 0 |
Number of clusters whose candidate list exceeded the per-cluster budget.
在文件 ClusteredLight.h 第 48 行定义.
◆ primaryColor
在文件 ClusteredLight.h 第 41 行定义.
被这些函数引用 eve::graphics::vulkan::Graphics::drawDeferredLighting().
◆ primaryDir
在文件 ClusteredLight.h 第 40 行定义.
被这些函数引用 eve::graphics::vulkan::Graphics::drawDeferredLighting().
◆ truncatedLightCount
| uint32_t eve::graphics::ClusteredLightingUpload::truncatedLightCount = 0 |
Number of input local lights rejected by the frame-wide 256-light budget.
在文件 ClusteredLight.h 第 46 行定义.
◆ view
| glm::mat4 eve::graphics::ClusteredLightingUpload::view {1.f} |
在文件 ClusteredLight.h 第 39 行定义.
被这些函数引用 eve::graphics::vulkan::Graphics::drawDeferredLighting().
该结构体的文档由以下文件生成:
- src/modules/graphics/ClusteredLight.h