createRadixSort
createRadixSort(
target):radixSortCallback
Defined in: utils/SortingUtils.ts:15
Creates a radix sort function specifically for sorting BatchedMesh instances.
The sorting is based on the depth property of each MultiDrawRenderItem.
This function dynamically adjusts for transparent materials by reversing the sort order if necessary.
Parameters
Section titled “Parameters”target
Section titled “target”BatchedMesh
The BatchedMesh instance that contains the instances to be sorted.
Returns
Section titled “Returns”radixSortCallback
A radix sort function.
Reference
Section titled “Reference”https://github.com/mrdoob/three.js/blob/master/examples/webgl_mesh_batch.html#L291