Fix SSR mixing bug regression

This commit is contained in:
2026-04-03 11:28:22 +02:00
parent 2fc95bdf57
commit 121ef2f244
3 changed files with 6 additions and 4 deletions
Binary file not shown.
@@ -310,6 +310,8 @@ void ReflectionsPass::Render(RenderContext& renderContext, GPUTextureView* light
context->Clear(*reflectionsBuffer, Color::Black);
// Reflection Probes pass
if (!useSSR && renderContext.View.Mode == ViewMode::Reflections)
context->Clear(lightBuffer, Color::Black);
if (renderProbes)
{
PROFILE_GPU_CPU("Env Probes");
+2 -2
View File
@@ -224,14 +224,14 @@ float4 PS_ResolvePass(Quad_VS2PS input) : SV_Target0
// Calculate final result value
result /= RESOLVE_SAMPLES;
result.a *= Intensity;
result.a *= Intensity;
#if SSR_REDUCE_HIGHLIGHTS
result.rgb /= 1 - Luminance(result.rgb);
#endif
// Normalize alpha
result.rgb *= max(1, result.a);
result.a = min(result, 1);
result.a = min(result.a, 1);
//return float4(abs(Luminance(result) - Luminance(saturate(result))).xxx, 1);
//return saturate(result);