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.


Can be created using method new:

Lib.Away3D.Core.Sort.RenderableSorter.new()

Creates a RenderableSorter objects



Created RenderableSorter object has methods:

sort(collector)

Sort the potentially visible data in an EntityCollector for rendering.

collector - The EntityCollector object containing the potentially visible data. (EntityCollector)

Created with the Personal Edition of HelpNDoc: Full-featured EPub generator