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.
todo: replace Vector::sort by custom sort algorithm
public function RenderableSorter()
Init Parameters
public override 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.
|