Added Ufbx
This commit is contained in:
@@ -6,7 +6,6 @@ using Misaki.HighPerformance.Mathematics;
|
||||
|
||||
namespace Ghost.Engine.Components;
|
||||
|
||||
[RequireComponent<LocalToWorld>]
|
||||
public unsafe struct Camera : IComponent
|
||||
{
|
||||
public float nearClipPlane;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user