| 4244 | } |
| 4245 | |
| 4246 | void RegisterWithVariableStore( const EveSpaceScene::ShadowResources& shadowResources, Tr2GpuResourcePool& gpuResourcePool ) |
| 4247 | { |
| 4248 | const uint8_t whiteR8[1] = { 255 }; |
| 4249 | Tr2SubresourceData initData = { whiteR8, 1, 1 }; |
| 4250 | |
| 4251 | GlobalStore().RegisterVariable( |
| 4252 | "EveSpaceSceneShadowMap", |
| 4253 | shadowResources.shadowMap.IsValid() ? shadowResources.shadowMap : gpuResourcePool.GetPersistentTexture( "EmptyShadow", 1, 1, ImageIO::PIXEL_FORMAT_R8_UNORM, Tr2GpuUsage::SHADER_RESOURCE, &initData ) ); |
| 4254 | GlobalStore().RegisterVariable( "EveSpaceSceneCascadedShadowMap", shadowResources.cascadedShadowDepth ); |
| 4255 | GlobalStore().RegisterVariable( |
| 4256 | "EveSpaceSceneDynamicShadowMap", |
| 4257 | shadowResources.pointLightShadowMap.IsValid() ? shadowResources.pointLightShadowMap : gpuResourcePool.GetPersistentTexture( "EmptyShadowUint", 1, 1, ImageIO::PIXEL_FORMAT_R8_UINT, Tr2GpuUsage::SHADER_RESOURCE, &initData ) ); |
| 4258 | GlobalStore().RegisterVariable( "ShadowMapAtlas", shadowResources.pointLightShadowDepth ); |
| 4259 | } |
no test coverage detected