Skip to content

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.

BatchedMesh

The BatchedMesh instance that contains the instances to be sorted.

radixSortCallback

A radix sort function.

https://github.com/mrdoob/three.js/blob/master/examples/webgl_mesh_batch.html#L291