feat(bake): extract each EnvCell geometry once

This commit is contained in:
Erik 2026-07-24 13:38:44 +02:00
parent 0dee14765b
commit 90b378cc70
4 changed files with 582 additions and 153 deletions

View file

@ -686,7 +686,7 @@ public sealed class MeshExtractor {
};
}
public ObjectMeshData? PrepareCellStructMeshData(ulong id, CellStruct cellStruct, List<ushort> surfaceOverrides, Matrix4x4 transform, CancellationToken ct) {
public ObjectMeshData? PrepareCellStructMeshData(ulong id, CellStruct cellStruct, IReadOnlyList<ushort> surfaceOverrides, Matrix4x4 transform, CancellationToken ct) {
var vertices = new List<VertexPositionNormalTexture>();
var UVLookup = new Dictionary<(ushort vertId, ushort uvIdx, bool isNeg), ushort>();
var batchesByFormat = new Dictionary<(int Width, int Height, TextureFormat Format), List<TextureBatchData>>();