feat(core): add GfxObjMesh.Build multi-surface mesh extractor
This commit is contained in:
parent
01745d30ab
commit
f915a13263
4 changed files with 350 additions and 0 deletions
12
src/AcDream.Core/Meshing/GfxObjSubMesh.cs
Normal file
12
src/AcDream.Core/Meshing/GfxObjSubMesh.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using AcDream.Core.Terrain;
|
||||
|
||||
namespace AcDream.Core.Meshing;
|
||||
|
||||
/// <summary>
|
||||
/// One sub-mesh of a GfxObj: a vertex+index buffer that uses a single Surface.
|
||||
/// A GfxObj with multiple surfaces produces multiple sub-meshes.
|
||||
/// </summary>
|
||||
public sealed record GfxObjSubMesh(
|
||||
uint SurfaceId,
|
||||
Vertex[] Vertices,
|
||||
uint[] Indices);
|
||||
Loading…
Add table
Add a link
Reference in a new issue