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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed NaN checker in CopyStd
  • Loading branch information
Chman committed Feb 5, 2018
1 parent 8ebe511 commit b40105b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PostProcessing/Shaders/Builtins/CopyStd.shader
Expand Up @@ -53,7 +53,7 @@ Shader "Hidden/PostProcessing/CopyStd"
//>>> We don't want to include StdLib.hlsl in this file so let's copy/paste what we need
bool IsNan(float x)
{
return (x <= 0.0 || 0.0 <= x) ? false : true;
return (x < 0.0 || x > 0.0 || x == 0.0) ? false : true;
}

bool AnyIsNan(float4 x)
Expand Down

1 comment on commit b40105b

@WILEz75
Copy link

@WILEz75 WILEz75 commented on b40105b Feb 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

He did not solve it.

https://youtu.be/JfCO_a9jWLs

The problem lies in the HDR of the camera.
Only by removing the HDR the problem vanishes.

Please sign in to comment.