private void EndSplitting() { // If there's only one island then skip, else every modification will waste CPU if (D2D_SplitBuilder.Groups.Count != 1) { D2D_SplitBuilder.DiscardTinyBits(MinPixels); D2D_SplitBuilder.EndSplitting(SplitOrder, false); } BusySplitting = false; }
public void Fracture() { if (destructible == null) { destructible = GetComponent <D2D_Destructible>(); } alphaTex = destructible.AlphaTex; width = alphaTex.width; height = alphaTex.height; total = width * height; D2D_SplitBuilder.BeginSplitting(destructible); { DoFracture(); } D2D_SplitBuilder.EndSplitting(D2D_SplitOrder.Default, Blur); }