fix types in Mesh struct, adjust name
This commit is contained in:
parent
443329b2dc
commit
b3e2779c23
6
assets.d
6
assets.d
@ -100,8 +100,8 @@ struct Mesh
|
|||||||
{
|
{
|
||||||
Vertex[] vtx;
|
Vertex[] vtx;
|
||||||
u32[] idx;
|
u32[] idx;
|
||||||
u64 start;
|
u32 offset;
|
||||||
u64 length;
|
u32 length;
|
||||||
u32 mat_id;
|
u32 mat_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,7 +375,7 @@ LoadGLTF(Arena* arena, string file_name)
|
|||||||
model.vtx_buf = Alloc!(Vertex)(vtx_count);
|
model.vtx_buf = Alloc!(Vertex)(vtx_count);
|
||||||
model.meshes = Alloc!(Mesh)(primitive_count);
|
model.meshes = Alloc!(Mesh)(primitive_count);
|
||||||
model.mats = Alloc!(Material)(data.materials_count+1);
|
model.mats = Alloc!(Material)(data.materials_count+1);
|
||||||
model.tex = Alloc!(ImageData)(data.textures_count+1);
|
model.tex = Alloc!(ImageData)(data.textures_count+1);
|
||||||
|
|
||||||
model.mats[0] = DEFAULT_MATERIAL;
|
model.mats[0] = DEFAULT_MATERIAL;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user