|
MeshTrianglesSorterSortByCameraDistance Method |
Sorts the triangle indices by distance to the specified camera position and sets the sorted indices into
SortedIndicesArray.
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.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax public bool SortByCameraDistance(
Vector3 cameraPosition,
bool checkIfAlreadySorted = true
)
Parameters
- cameraPosition Vector3
- cameraPosition
- checkIfAlreadySorted Boolean (Optional)
- true (by default) to check if sorting is required
Return Value
Booleantrue when the order of the triangles was changed
See Also