CullingResults.GetLightIndexMap

Declaration

public NativeArray<int> GetLightIndexMap(Unity.Collections.Allocator allocator);

Parameters

allocator The allocator to use.

Returns

NativeArray<int> Array of indices that map from VisibleLight indices to internal per-object light list indices.

Description

If a RenderPipeline sorts or otherwise modifies the VisibleLight list, an index remap will be necessary to properly make use of per-object light lists.


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