bakeInput | The BakeInput to use to find the brightest lights. |
probePositions | The positions from which to calculate the indices of the brightest lights. |
maxLightsPerProbe | The amount of light indices to calculate per probe. Defaults to 4. |
int[] The indices of the brightest lights from each probe position. The returned array will have a length equal to the length of the probePositions array multiplied by maxLightsPerProbe.
For each probe position, computes the indices of the brightest lights from the probe position's point of view. The function uses the information about lights stored in an existing BakeInput. This function is intended to be used with IProbeIntegrator.IntegrateOcclusion.
Additional resources: IProbeIntegrator.IntegrateOcclusion.