VOXELFORMAT: relax color matching threshold for some tests
parent
7dc863af57
commit
aab26f30dd
|
@ -91,6 +91,12 @@ TEST_F(ConvertTest, testSproxelToQb) {
|
|||
testLoadSaveAndLoad("rgb.csv", src, "test.qb", target, true, true);
|
||||
}
|
||||
|
||||
TEST_F(ConvertTest, testQbToQb) {
|
||||
QBFormat src;
|
||||
QBFormat target;
|
||||
testLoadSaveAndLoad("chr_knight.qb", src, "chr_knight2.qb", target, true, false);
|
||||
}
|
||||
|
||||
TEST_F(ConvertTest, testQbToVXM) {
|
||||
QBFormat src;
|
||||
VXMFormat target;
|
||||
|
|
|
@ -59,7 +59,7 @@ TEST_F(VoxFormatTest, testLoadGlasses) {
|
|||
for (int i = 0; i < lengthof(volumes); ++i) {
|
||||
const voxel::RawVolume &v1 = *volumes[i].get();
|
||||
const voxel::RawVolume &v2 = *sceneGraph[i]->volume();
|
||||
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true);
|
||||
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true, 0.004f);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ TEST_F(VoxFormatTest, testLoad8OnTop) {
|
|||
for (int i = 0; i < lengthof(volumes); ++i) {
|
||||
const voxel::RawVolume &v1 = *volumes[i].get();
|
||||
const voxel::RawVolume &v2 = *sceneGraph[i]->volume();
|
||||
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true);
|
||||
volumeComparator(v1, voxel::getPalette(), v2, sceneGraph[i]->palette(), true, true, 0.02f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue