Example #1
0
        [MethodImpl(MethodImplOptions.AggressiveInlining)] public void UpdateVoxelLighting(int i, int j, int k, Voxel voxel, VoxelDefinition definition)
        {
            BuildingContext.SetAllChanged();

            foreach (var chunk in GetNeighborChunkIndexes(i, k))
            {
                chunk.BuildingContext.SetAllChanged();
            }


            SetVoxel(i, j, k, voxel);
        }