3DMF: support vertex attribute kQ3AttributeTypeSurfaceUV

Required for thorn submeshes in Bugdom's
game over throne room (WinLose.3dmf)
This commit is contained in:
Iliyas Jorio 2021-05-02 19:49:06 +02:00
parent 375d14e266
commit 935674437f

View File

@ -378,7 +378,8 @@ void Q3MetaFileParser::Parse_atar(uint32_t chunkSize)
Assert(isTriangleAttribute || isVertexAttribute, "only face or vertex attributes are supported");
if (isVertexAttribute && attributeType == kQ3AttributeTypeShadingUV)
if (isVertexAttribute &&
(attributeType == kQ3AttributeTypeShadingUV || attributeType == kQ3AttributeTypeSurfaceUV))
{
printf("vertex UVs");
Assert(!currentMesh->vertexUVs, "current mesh already had a vertex UV array");