feat(bake): extract each EnvCell geometry once
This commit is contained in:
parent
0dee14765b
commit
90b378cc70
4 changed files with 582 additions and 153 deletions
|
|
@ -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>>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue