Packageaway3d.core.sort
Classpublic class DepthSorter
InheritanceDepthSorter 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.

Public Methods
 MethodDefined by
  
Creates a RenderableSorter objects
DepthSorter
  
sort(collector:EntityCollector):void
Sort the potentially visible data in an EntityCollector for rendering.
DepthSorter
Constructor detail
DepthSorter()constructor
public function DepthSorter() 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.DepthSorter'

Code examples

Comments