From 3f7cf2f971d54b9a9b8d226cbb654ab0becdc3fd Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Wed, 26 Jun 2019 16:46:57 -0700 Subject: [PATCH] Increase epsilon in test_cmgen. --- tools/cmgen/tests/test_cmgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmgen/tests/test_cmgen.cpp b/tools/cmgen/tests/test_cmgen.cpp index c9f688907e..d008f676a8 100644 --- a/tools/cmgen/tests/test_cmgen.cpp +++ b/tools/cmgen/tests/test_cmgen.cpp @@ -112,7 +112,7 @@ static void processEnvMap(string inputPath, string resultPath, string goldenPath } static void compareSh(const string& content, const string& regex, - const float3& match, float epsilon = 1e-7f) { + const float3& match, float epsilon = 1e-5f) { std::smatch smatch; if (std::regex_search(content, smatch, std::regex(regex))) { float3 sh(std::stof(smatch[1]), std::stof(smatch[2]), std::stof(smatch[3]));