Increase epsilon in test_cmgen.

This commit is contained in:
Philip Rideout
2019-06-26 16:46:57 -07:00
parent 84cc8ff9c8
commit 3f7cf2f971

View File

@@ -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]));