| 517 | } |
| 518 | |
| 519 | Tr2GpuResourcePool::Texture Tr2VolumetricsRenderer::RenderFogIntoReflectionMap( |
| 520 | Tr2RenderContext& renderContext, |
| 521 | Tr2GpuResourcePool& gpuResourcePool, |
| 522 | uint32_t width, |
| 523 | uint32_t height, |
| 524 | const Vector3& sunDirection, |
| 525 | const Color& sunColor, |
| 526 | const Vector3d origin, |
| 527 | const Matrix& view, |
| 528 | const Matrix& projection ) |
| 529 | { |
| 530 | auto fog = RenderFog( m_fogReflectionResources, renderContext, gpuResourcePool, width, height, nullptr, nullptr, ShadowQuality::SHADOW_DISABLED, sunDirection, sunColor, origin, Vector3d( 0, 0, 0 ), view, projection, view, projection ); |
| 531 | if( !fog.IsValid() ) |
| 532 | { |
| 533 | return GetEmptyFogTexture( gpuResourcePool ); |
| 534 | } |
| 535 | return fog; |
| 536 | } |
| 537 | |
| 538 | Tr2GpuResourcePool::Texture Tr2VolumetricsRenderer::GetEmptyFogTexture( Tr2GpuResourcePool& gpuResourcePool ) |
| 539 | { |
no test coverage detected