implemented some leeds stuff

This commit is contained in:
aap
2015-12-21 20:11:55 +01:00
parent 37e1e239f9
commit b4427ee1ac
6 changed files with 465 additions and 3 deletions

View File

@@ -315,11 +315,12 @@ convertRslGeometry(Geometry *g)
// Be careful with face winding.
if(lastId == rm->matID)
m->numIndices += (rm-1)->numTriangles % 2 ? 3 : 2;
m->material = g->materialList[rm->matID];
lastId = rm->matID;
}
for(uint32 i = 0; i < g->meshHeader->numMeshes; i++)
for(uint32 i = 0; i < g->meshHeader->numMeshes; i++){
g->meshHeader->mesh[i].material = g->materialList[i];
g->meshHeader->totalIndices += meshes[i].numIndices;
}
g->geoflags = Geometry::TRISTRIP |
Geometry::POSITIONS | /* 0x01 ? */
Geometry::TEXTURED | /* 0x04 ? */

View File

@@ -97,7 +97,7 @@ PluginBase<T>::streamReadPlugins(Stream *stream)
(void*)this, p->offset, p->size);
goto cont;
}
// printf("skipping plugin %X\n", header.type);
//printf("skipping plugin %X\n", header.type);
stream->seek(header.length);
cont:
length -= header.length;