private static extern void Internal_getCellCount(IntPtr thisPtr, out Vector3I __output);
/// <summary> /// Resizes the light probe grid and inserts new light probes, if the new size is larger than previous size. New probes /// are inserted in a grid pattern matching the new size and density parameters. /// /// Note that shrinking the volume will not remove light probes. In order to remove probes outside of the new volume call /// clip(). /// /// Resize will not change the positions of current light probes. If you wish to reset all probes to the currently set /// grid position, call reset(). /// </summary> /// <param name="volume">Axis aligned volume to be covered by the light probes.</param> public void Resize(AABox volume) { Vector3I cellCount = new Vector3I(1, 1, 1); Internal_resize(mCachedPtr, ref volume, ref cellCount); }
private static extern void Internal_resize(IntPtr thisPtr, ref AABox volume, ref Vector3I cellCount);
/// <summary> /// Resizes the light probe grid and inserts new light probes, if the new size is larger than previous size. New probes /// are inserted in a grid pattern matching the new size and density parameters. /// /// Note that shrinking the volume will not remove light probes. In order to remove probes outside of the new volume call /// clip(). /// /// Resize will not change the positions of current light probes. If you wish to reset all probes to the currently set /// grid position, call reset(). /// </summary> /// <param name="volume">Axis aligned volume to be covered by the light probes.</param> /// <param name="cellCount"> /// Number of grid cells to split the volume into. Minimum number of 1, in which case each corner of the volume is /// represented by a single probe. Higher values subdivide the volume in an uniform way. /// </param> public void Resize(AABox volume, Vector3I cellCount) { Internal_resize(mCachedPtr, ref volume, ref cellCount); }