Added Ufbx

This commit is contained in:
2026-03-14 18:29:18 +09:00
parent 254b08bc81
commit cce1cf7256
372 changed files with 11672 additions and 154 deletions

View File

@@ -6,7 +6,6 @@ using Misaki.HighPerformance.Mathematics;
namespace Ghost.Engine.Components;
[RequireComponent<LocalToWorld>]
public unsafe struct Camera : IComponent
{
public float nearClipPlane;

View File

@@ -7,7 +7,7 @@ namespace Ghost.Engine.Components;
public struct MeshInstance : IComponent
{
public Handle<Mesh> mesh;
public int materialPaletteIndex;
public Identifier<MaterialPalette> materialPalette;
public ShadowCastingMode shadowCastingMode;
public RenderingLayerMask renderingLayerMask;
public bool staticShadowCaster;

View File

@@ -34,7 +34,7 @@ public class RenderExtractionSystem : ISystem
var meshInstances = chunk.GetComponentData<MeshInstance>();
var localToWorlds = chunk.GetComponentData<LocalToWorld>();
for (int i = 0; i < chunk.Count; i++)
for (var i = 0; i < chunk.Count; i++)
{
ref readonly var meshInstance = ref meshInstances[i];
ref readonly var localToWorld = ref localToWorlds[i];
@@ -43,7 +43,7 @@ public class RenderExtractionSystem : ISystem
{
localToWorld = localToWorld.matrix,
mesh = meshInstance.mesh,
materialPaletteIndex = meshInstance.materialPaletteIndex,
materialPalette = meshInstance.materialPalette,
renderingLayerMask = meshInstance.renderingLayerMask,
}, 0);