From c2c41d1e7311b0ec2eea1d2a92f6b4bed3c971b2 Mon Sep 17 00:00:00 2001 From: #xoxor4d Date: Sat, 2 Nov 2024 11:31:34 +0100 Subject: [PATCH] rayportal: disable fade-in effect for portals with to emissive texture --- src/dxvk/shaders/rtx/algorithm/resolve.slangh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/shaders/rtx/algorithm/resolve.slangh b/src/dxvk/shaders/rtx/algorithm/resolve.slangh index e13efeba..a2b9c6f1 100644 --- a/src/dxvk/shaders/rtx/algorithm/resolve.slangh +++ b/src/dxvk/shaders/rtx/algorithm/resolve.slangh @@ -581,7 +581,7 @@ void resolveVertex( // Render Portal outline { - const bool portalFadeInEffect = cb.enablePortalFadeInEffect; + const bool portalFadeInEffect = cb.enablePortalFadeInEffect && rayPortalSurfaceMaterial.maskTextureIndex != BINDING_INDEX_INVALID; const float16_t tFactor = portalFadeInEffect ? float16_t((surface.tFactor >> 24) & 0xff) / 255.0 : float16_t(0.0); const float16_t ringTransparency = saturate(float16_t(1) - rayPortalSurfaceMaterialInteraction.mask.a) *