Packageaway3d.core.sort
Classpublic class RenderableMergeSort
InheritanceRenderableMergeSort Inheritance EntitySorterBase Inheritance Object

RenderableSorter sorts the potentially visible IRenderable objects collected by EntityCollector for optimal rendering performance. Objects are sorted first by material, then by distance to the camera. Opaque objects are sorted front to back, while objects that require blending are sorted back to front, to ensure correct blending.



Public Methods
 MethodDefined By
  
Creates a RenderableSorter objects
RenderableMergeSort
  
sort(collector:EntityCollector):void
[override] Sort the potentially visible data in an EntityCollector for rendering.
RenderableMergeSort
Constructor Detail
RenderableMergeSort()Constructor
public function RenderableMergeSort()

Creates a RenderableSorter objects

Method Detail
sort()method
override public function sort(collector:EntityCollector):void

Sort the potentially visible data in an EntityCollector for rendering.

Parameters

collector:EntityCollector — The EntityCollector object containing the potentially visible data.