Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/Upscaling/Shaders/Features/Upscaling.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[Info]
Version = 1-1-0
Version = 1-1-1
3 changes: 2 additions & 1 deletion features/Upscaling/Shaders/Upscaling/EncodeTexturesCS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RWTexture2D<float2> MotionVectorOutput : register(u2);

#if defined(DLSS)
float depth = DepthMask[dispatchID.xy];
float nearFactor = smoothstep(4096.0 * 2.5, 0.0, SharedData::GetScreenDepth(depth));

// Find longest motion vector in 5x5 neighborhood
float2 motionVector = MotionVectorMask[dispatchID.xy];
Expand Down Expand Up @@ -58,7 +59,7 @@ RWTexture2D<float2> MotionVectorOutput : register(u2);
}
}

MotionVectorOutput[dispatchID.xy] = longestMotionVector;
MotionVectorOutput[dispatchID.xy] = lerp(longestMotionVector, motionVector, nearFactor);
#endif

float reactiveMask = taaMask.x * 0.1 + taaMask.y;
Expand Down