Tests: extend OBJ test coverage for #126065

This commit is contained in:
Aras Pranckevicius
2024-08-09 14:49:17 +03:00
parent 86e7668b11
commit 983687ebfc
2 changed files with 31 additions and 1 deletions

View File

@@ -853,6 +853,36 @@ TEST_F(OBJImportTest, import_cubes_vertex_colors_mrgb)
import_and_check("cubes_vertex_colors_mrgb.obj", expect, std::size(expect), 0);
}
TEST_F(OBJImportTest, import_vertex_colors_non_contiguous)
{
Expectation expect[] = {
{"OBCube", OB_MESH, 8, 12, 6, 24, float3(1, 1, -1), float3(-1, 1, 1)},
{"OBNoColor",
OB_MESH,
3,
3,
1,
3,
float3(0, 0, 1),
float3(1, 0, 1),
float3(0, 0, 0),
float2(0, 0),
float4(-1, -1, -1, -1)},
{"OBRed",
OB_MESH,
3,
3,
1,
3,
float3(0, 0, 0),
float3(1, 0, 0),
float3(0, 0, 0),
float2(0, 0),
float4(1, 0, 0, 1)},
};
import_and_check("vertex_colors_non_contiguous.obj", expect, std::size(expect), 0);
}
TEST_F(OBJImportTest, import_vertices)
{
Expectation expect[] = {