createRadixSort
createRadixSort(
target
):any
Defined in: utils/SortingUtils.ts:14
Creates a radix sort function specifically for sorting InstancedMesh2
instances.
The sorting is based on the depth
property of each InstancedRenderItem
.
This function dynamically adjusts for transparent materials by reversing the sort order if necessary.
Parameters
target
The InstancedMesh2
instance that contains the instances to be sorted.
Returns
any
A radix sort function.