InputExtraction.ComputeOcclusionLightIndicesFromBakeInput

Declaration

public static int[] ComputeOcclusionLightIndicesFromBakeInput(LightTransport.InputExtraction.BakeInput bakeInput, Vector3[] probePositions, uint maxLightsPerProbe);

Parameters

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.

Returns

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.

Description

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.


Did you find this page useful? Please give it a rating: