perf(render): consume prepared mesh package at runtime
This commit is contained in:
parent
c42f93b323
commit
f05afc07c1
22 changed files with 328 additions and 370 deletions
|
|
@ -168,6 +168,7 @@ public static class ObjectMeshDataSerializer {
|
|||
WriteNullableInt32Enum(w, batch.UploadPixelType.HasValue, batch.UploadPixelType is { } upt ? (int)upt : 0);
|
||||
WriteUInt16List(w, batch.Indices);
|
||||
w.Write((int)batch.CullMode);
|
||||
w.Write((int)batch.Translucency);
|
||||
w.Write(batch.IsTransparent);
|
||||
w.Write(batch.IsAdditive);
|
||||
w.Write(batch.HasWrappingUVs);
|
||||
|
|
@ -182,6 +183,8 @@ public static class ObjectMeshDataSerializer {
|
|||
batch.UploadPixelType = ReadNullableInt32Enum(r, v => (UploadPixelType)v);
|
||||
batch.Indices = ReadUInt16List(r);
|
||||
batch.CullMode = (CullMode)r.ReadInt32();
|
||||
batch.Translucency =
|
||||
(AcDream.Core.Meshing.TranslucencyKind)r.ReadInt32();
|
||||
batch.IsTransparent = r.ReadBoolean();
|
||||
batch.IsAdditive = r.ReadBoolean();
|
||||
batch.HasWrappingUVs = r.ReadBoolean();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue