public static void FlushRangesEdited(this ClipmapStreamer clipmapStreamer, int minLod, int maxLod) { var rangesCount = rangesEdited.Count; clipmapStreamer.OnRangesEdited(rangesEdited, minLod, maxLod); rangesEdited.Clear(); Logger.Info($"{rangesCount} ranges flushing"); }
private static void OnRangesEdited(this ClipmapStreamer clipmapStreamer, List <Int3.Bounds> blockRanges, int minLod, int maxLod) { var clipmapStreamerLevels = clipmapStreamer.levels; minLod = Mathf.Clamp(minLod, 0, clipmapStreamerLevels.Length - 1); maxLod = Mathf.Clamp(maxLod, 0, clipmapStreamerLevels.Length - 1); for (int i = minLod; i <= maxLod; i++) { clipmapStreamerLevels[i].OnBatchOctreesEdited(blockRanges); } }
public static void AddToRangesEdited(this ClipmapStreamer clipmapStreamer, Int3.Bounds blockRange) { rangesEdited.Add(blockRange); Logger.Info($"{blockRange} added. Currently has {rangesEdited.Count} ranges added."); }