UNPKG

@three.ez/instanced-mesh

Version:

Enhanced InstancedMesh with frustum culling, fast raycasting (using BVH), sorting, visibility management and more.

12 lines 745 B
import { radixSort } from 'three/addons/utils/SortUtils.js'; import { InstancedMesh2 } from '../core/InstancedMesh2.js'; import { InstancedRenderItem } from '../core/utils/InstancedRenderList.js'; /** * 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. * @param target The `InstancedMesh2` instance that contains the instances to be sorted. * @returns A radix sort function. */ export declare function createRadixSort(target: InstancedMesh2): typeof radixSort<InstancedRenderItem>; //# sourceMappingURL=SortingUtils.d.ts.map