 |
MeshTrianglesSorterSortByCameraDistance(Vector3) Method |
Sorts the triangle indices by distance to the specified camera position and returns the sorted triangle indices.
When the checkIfAlreadySorted parameter is true (by default), then the currently sorted positions are first checked if they are already sorted and in this case do not sort the array.
The sorted positions are also accessible from
SortedIndicesArray property.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic int[] SortByCameraDistance(
Vector3 cameraPosition
)
Parameters
- cameraPosition Vector3
- cameraPosition
Return Value
Int32array of integers that represents sorted triangle indices
See Also