Fixed compilation errors;

Added MaterialPalette
This commit is contained in:
2026-03-14 12:27:49 +09:00
parent 8a3b40b4f8
commit 912b320d8f
27 changed files with 1870 additions and 483 deletions

View File

@@ -42,9 +42,8 @@ public class RenderExtractionSystem : ISystem
renderList.Add(new RenderRecord
{
localToWorld = localToWorld.matrix,
// TODO: Get mesh and material from palette. This requires some changes to ISharedComponent since it's now fully functional right now.
// mesh = meshInstance.meshIndex,
// material = meshInstance.materialIndex,
mesh = meshInstance.mesh,
materialPaletteIndex = meshInstance.materialPaletteIndex,
renderingLayerMask = meshInstance.renderingLayerMask,
}, 0);