Packageaway3d.core.sort
Classpublic class RenderableSorter
InheritanceRenderableSorter Inheritance EntitySorterBase

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 Methods
 MethodDefined by
  
Creates a RenderableSorter objects
RenderableSorter
  
sort(collector:EntityCollector):void
Sort the potentially visible data in an EntityCollector for rendering.
RenderableSorter
Constructor detail
RenderableSorter()constructor
public function RenderableSorter() Init Parameters
Method detail
sort()method
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.
Wiki link
Click to go to the wiki page for 'away3d.core.sort.RenderableSorter'

Code examples

Comments