UNPKG

@three.ez/batched-mesh-extensions

Version:
14 lines 798 B
import { BatchedMesh } from 'three'; import { MultiDrawRenderItem } from '../core/MultiDrawRenderList.js'; type radixSortCallback = (list: MultiDrawRenderItem[]) => void; /** * 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. * @param target The `BatchedMesh` instance that contains the instances to be sorted. * @returns A radix sort function. * @reference https://github.com/mrdoob/three.js/blob/master/examples/webgl_mesh_batch.html#L291 */ export declare function createRadixSort(target: BatchedMesh): radixSortCallback; export {}; //# sourceMappingURL=SortingUtils.d.ts.map