View source
class RenderableMergeSort
package away3d.core.sort
implements IEntitySorter
Available on all platforms
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.