@ -68,7 +68,7 @@ void CS(uint3 gl_GlobalInvocationID : SV_DispatchThreadID)
float2 EncodedVelocity = LOAD_TEXTURE2D_X(InputVelocity, InputPos);
float2 motion;
if (EncodedVelocity.x > 0.0)
if (any(abs(EncodedVelocity) > 0.0))
{
motion = decodeVelocityFromTexture(EncodedVelocity.xy);
}
@ -58,7 +58,7 @@ void CS(uint3 gl_GlobalInvocationID : SV_DispatchThreadID)
@ -1,5 +1,7 @@
#define EPSILON 1.192e-07f
#define REQUEST_NDC_Y_UP
#ifdef UNITY_REVERSED_Z
#define DEPTH_NEAREST(a, b) max((a), (b))
#define DEPTH_CLIP(depth) ((depth) > 1.0e-05f)