mirror of
https://github.com/aap/librw.git
synced 2025-12-18 16:39:51 +00:00
implemented some leeds stuff
This commit is contained in:
@@ -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 ? */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user