| 670 | } |
| 671 | |
| 672 | Tr2GpuResourcePool::Texture EveSpaceSceneRenderDriver::GetNormalMapIfNeeded( const TextureSize2D& size, const Span<TempOutput>& outputs ) |
| 673 | { |
| 674 | auto namedOutput = FindNamedOutput( outputs, "NormalMap" ); |
| 675 | if( ( ( m_settings.aoQuality != AmbientOcclusionQuality::Disabled || m_settings.shadowQuality == ShadowQuality::SHADOW_RAYTRACED ) && Tr2Renderer::GetShaderModel() != TR2SM_3_0_LO ) || m_settings.forceNormalMap || namedOutput ) |
| 676 | { |
| 677 | auto texture = m_gpuResourcePool.GetTempTexture( "normalMap", size, ImageIO::PIXEL_FORMAT_R10G10B10A2_UNORM, Tr2GpuUsage::RENDER_TARGET | Tr2GpuUsage::SHADER_RESOURCE ); |
| 678 | if( namedOutput ) |
| 679 | { |
| 680 | namedOutput->texture = texture; |
| 681 | } |
| 682 | return texture; |
| 683 | } |
| 684 | return {}; |
| 685 | } |
| 686 | |
| 687 | Tr2GpuResourcePool::Texture EveSpaceSceneRenderDriver::GetCustomStencilMapIfNeeded( const TextureSize2D& size, const Span<TempOutput>& outputs ) |
| 688 | { |
nothing calls this directly
no test coverage detected