Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit b40105b

Browse files
committed
Fixed NaN checker in CopyStd
1 parent 8ebe511 commit b40105b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Shaders/Builtins/CopyStd.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Shader "Hidden/PostProcessing/CopyStd"
5353
//>>> We don't want to include StdLib.hlsl in this file so let's copy/paste what we need
5454
bool IsNan(float x)
5555
{
56-
return (x <= 0.0 || 0.0 <= x) ? false : true;
56+
return (x < 0.0 || x > 0.0 || x == 0.0) ? false : true;
5757
}
5858

5959
bool AnyIsNan(float4 x)

0 commit comments

Comments
 (0)