Esempio n. 1
0
 private static extern void Internal_getCellCount(IntPtr thisPtr, out Vector3I __output);
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 private static extern void Internal_resize(IntPtr thisPtr, ref AABox volume, ref Vector3I cellCount);
Esempio n. 4
0
 /// <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);
 }