mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
material name is now used as texture/idMaterial
This commit is contained in:
parent
faa9207d01
commit
a6d4ca7694
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ MapPolygonMesh* MapPolygonMesh::ConvertFromMeshGltf( const gltfMesh_Primitive *
|
|||
gltfAccessor* accessor = _data->AccessorList( )[prim->indices];
|
||||
gltfBufferView* bv = _data->BufferViewList( )[accessor->bufferView];
|
||||
gltfData* data = bv->parent;
|
||||
gltfMaterial* mat = _data->MaterialList()[prim->material];
|
||||
|
||||
gltfBuffer* buff = data->BufferList( )[bv->buffer];
|
||||
uint idxDataSize = sizeof( uint ) * accessor->count;
|
||||
|
@ -39,7 +40,7 @@ MapPolygonMesh* MapPolygonMesh::ConvertFromMeshGltf( const gltfMesh_Primitive *
|
|||
for( int i = 0; i < accessor->count; i += 3 )
|
||||
{
|
||||
MapPolygon& polygon = mesh->polygons.Alloc();
|
||||
polygon.SetMaterial( "textures/enpro/enwall16" );
|
||||
polygon.SetMaterial( mat->name );
|
||||
polygon.AddIndex( indices[i + 2] );
|
||||
polygon.AddIndex( indices[i + 1] );
|
||||
polygon.AddIndex( indices[i + 0] );
|
||||
|
|
Loading…
Reference in a new issue