diff --git a/CHANGELOG.md b/CHANGELOG.md index 22c3d99..988eca4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,14 @@ You can find changelogs for the individual modules in the [official Latios Framework Documentation repository](https://github.com/Dreaming381/Latios-Framework-Documentation). +## [0.10.5] – 2024-7-28 + +Officially supports Entities [1.2.1] – [1.2.3] + +### Changed + +- Updated Kinemation to v0.10.5 + ## [0.10.4] – 2024-7-20 Officially supports Entities [1.2.1] – [1.2.3] diff --git a/Kinemation/Authoring/BakingSystems/RendererBakingSystem.cs b/Kinemation/Authoring/BakingSystems/RendererBakingSystem.cs index af5ad7d..739faf6 100644 --- a/Kinemation/Authoring/BakingSystems/RendererBakingSystem.cs +++ b/Kinemation/Authoring/BakingSystems/RendererBakingSystem.cs @@ -397,9 +397,9 @@ public class LightMapReference private int m_numLightMappedMaterialCacheHits; private int m_numLightMappedMaterialCacheMisses; - private Dictionary m_lightMapArrayCache = new Dictionary(); - private Dictionary > m_lightMappedMaterialCache = new (); - private Dictionary m_lightMapReferences = new Dictionary(); + private Dictionary m_lightMapArrayCache = new Dictionary(); + private Dictionary m_lightMappedMaterialCache = new (); + private Dictionary m_lightMapReferences = new Dictionary(); public LightMapBakingContext() { @@ -532,7 +532,7 @@ public Material GetLightMappedMaterial(UnityObjectRef baseMaterial, Li } } - private static UnityObjectRef CreateLightMappedMaterial(UnityObjectRef material, LightMaps lightMaps) + private static Material CreateLightMappedMaterial(UnityObjectRef material, LightMaps lightMaps) { var lightMappedMaterial = new Material(material); lightMappedMaterial.name = $"{lightMappedMaterial.name}_Lightmapped_"; diff --git a/Kinemation/Systems/Culling/FrustumCullOptimizedSkeletonsSystem.cs b/Kinemation/Systems/Culling/FrustumCullOptimizedSkeletonsSystem.cs index 35b9b03..1adec94 100644 --- a/Kinemation/Systems/Culling/FrustumCullOptimizedSkeletonsSystem.cs +++ b/Kinemation/Systems/Culling/FrustumCullOptimizedSkeletonsSystem.cs @@ -199,19 +199,11 @@ public unsafe void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex, bo if (chunkIn == FrustumPlanes.IntersectResult.Partial) { - var inMask = mask.lower.Value; - for (int i = math.tzcnt(inMask); i < 64; inMask ^= 1ul << i, i = math.tzcnt(inMask)) + for (int i = 0; i < chunk.Count; i++) { bool isIn = FrustumPlanes.Intersect2NoPartial(combinedSplitPlanes, worldBounds[i].bounds) != FrustumPlanes.IntersectResult.Out; splitMasks.splitMasks[i] |= (byte)math.select(0u, splitMask, isIn); } - inMask = mask.upper.Value; - for (int i = math.tzcnt(inMask); i < 64; inMask ^= 1ul << i, i = math.tzcnt(inMask)) - { - bool isIn = - FrustumPlanes.Intersect2NoPartial(combinedSplitPlanes, worldBounds[i + 64].bounds) != FrustumPlanes.IntersectResult.Out; - splitMasks.splitMasks[i + 64] |= (byte)math.select(0u, splitMask, isIn); - } } else if (chunkIn == FrustumPlanes.IntersectResult.In) { diff --git a/README.md b/README.md index 636675d..93453f4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![](https://github.com/Dreaming381/Latios-Framework-Documentation/blob/554a583e217bfe5bf38ece0ed65b22c33711afc6/media/bf2cb606139bb3ca01fe1c4c9f92cdf7.png) -# Latios Framework for Unity ECS – [0.10.4] +# Latios Framework for Unity ECS – [0.10.5] The Latios Framework is a powerful suite of high-performance low-level APIs and feature-sets for Unity’s ECS which aims to give you back control over your diff --git a/package.json b/package.json index 9317f0b..54295cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.latios.latiosframework", "displayName": "Latios Framework for ECS", - "version": "0.10.4", + "version": "0.10.5", "unity": "2022.3", "description": "Latios Framework for ECS is a collection of tools, algorithms, and API extensions developed by a hardcore hobbyist game developer.\n\nThis package includes all of the following modules:\n\u25aa Core\n\u25aa QVVS Transforms\n\u25aa Psyshock Physics\n\u25aa Myri Audio\n\u25aa Kinemation Animation and Rendering\n\u25aa Caligraphics\n\u25aa Mimic\n\nExamples: \n\u25aa Latios Space Shooter Sample - https://github.com/Dreaming381/lsss-wip \n\u25aa Mini Demos - https://github.com/Dreaming381/LatiosFrameworkMiniDemos \n\u25aa Free Parking - https://github.com/Dreaming381/Free-Parking", "documentationURL": "https://github.com/Dreaming381/Latios-Framework-Documentation",