Skip to content

Commit

Permalink
rayportal: disable fade-in effect for portals with to emissive texture
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxor4d authored and anon-apple committed Nov 4, 2024
1 parent 18eeadb commit c2c41d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dxvk/shaders/rtx/algorithm/resolve.slangh
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ void resolveVertex<T: IBasePayloadState>(

// 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) *
Expand Down

0 comments on commit c2c41d1

Please sign in to comment.