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) *