From 426b53e46dad4c51f7f084f9057d6c95cc2a2abf Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 1 May 2022 21:42:48 +0200 Subject: [PATCH] Increase max samples for SSR in forward shading --- Content/Editor/MaterialTemplates/Features/ForwardShading.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content/Editor/MaterialTemplates/Features/ForwardShading.hlsl b/Content/Editor/MaterialTemplates/Features/ForwardShading.hlsl index 34376caf3..50cf52bbf 100644 --- a/Content/Editor/MaterialTemplates/Features/ForwardShading.hlsl +++ b/Content/Editor/MaterialTemplates/Features/ForwardShading.hlsl @@ -107,7 +107,7 @@ float4 PS_Forward(PixelInput input) : SV_Target0 Texture2D sceneColorTexture = MATERIAL_REFLECTIONS_SSR_COLOR; float2 screenUV = materialInput.SvPosition.xy * ScreenSize.zw; float stepSize = ScreenSize.z; // 1 / screenWidth - float maxSamples = 32; + float maxSamples = 48; float worldAntiSelfOcclusionBias = 0.1f; float brdfBias = 0.82f; float drawDistance = 5000.0f;