Click or drag to resize
AB4D logo

TransparencySorterSortByCameraDistance(ModelVisual3D, BaseCamera) Method

Sorts objects in ModelVisual3D with moving transparent objects to the back of the objects collection. The transparent objects are arranged in that way that the objects that are farther away from the camera are rendered before objects that are closer to the camera.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static bool SortByCameraDistance(
	ModelVisual3D modelVisual3D,
	BaseCamera camera
)

Parameters

modelVisual3D  ModelVisual3D
ModelVisual3D
camera  BaseCamera
Ab3d.PowerToys camera

Return Value

Boolean
true if any object was moved
See Also