Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
ClosebakeInput | 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.