feat: hull model

This commit is contained in:
tresabhi committed 2025-03-19 20:08:28 -05:00
1 parent e1957daa5c
commit 652f36ba6c
4 files changed
+21 -11

No files matched your search

+2 -7
View File
@@ -38,17 +38,12 @@ namespace BlitzKit.CLI.Models
ExporterOptions options = new() { TextureFormat = ETextureFormat.Jpeg };
staticMesh.TryConvert(out var convertedMesh);
var lod =
convertedMesh.LODs.Find(lod => !lod.SkipLod) ?? throw new Exception("Failed to find lod0");
int sectionIndex = 0;
foreach (var section in lod.Sections.Value)
{
sectionIndex++;
}
convertedMesh.LODs.Find(lod => !lod.SkipLod) ?? throw new Exception("Failed to find lod0"); // first non-skippable lod is the highest quality
MaterialBuilder emptyMaterial = new("empty_material");
Dictionary<string, MaterialBuilder> namedMaterials = [];
int sectionIndex = 0;
foreach (var section in lod.Sections.Value)
{
ConfiguredMeshBuilder meshBuilder = new($"{staticMesh.Name}_section_{sectionIndex}");