Skip to content

Commit

Permalink
Merge branch 'dev/ralston/conditional_portal_fade_in' into 'main'
Browse files Browse the repository at this point in the history
[PR:83] Conditional Ray Portal Fade-in

See merge request lightspeedrtx/dxvk-remix-nv!1120
  • Loading branch information
anon-apple committed Nov 4, 2024
2 parents 3ac961d + c2c41d1 commit 912a614
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 912a614

Please sign in to comment.