RenderQueue

RenderQueue

The RenderQueue handles sorting of entities. Entities are ordered by their renderQueue value into buckets.
Entities within the opaque buckets are sorted front to back and entities within the transparent buckets are sorted
back to front.

Constructor

new RenderQueue()

Members

(static, readonly) BACKGROUND :number

Rendered before any other objects. Commonly used for skyboxes and the likes

(static, readonly) OPAQUE :number

Used for most objects, typically opaque geometry. Rendered front to back

Default Value:
  • 1000

(static, readonly) OVERLAY :number

For overlay effects like lens-flares etc

Default Value:
  • 3000

(static, readonly) TRANSPARENT :number

For all alpha-blended objects. Rendered back to front

Default Value:
  • 2000

Methods

sort(renderList, view)

Parameters:
Name Type Description
renderList Array.<Entity>
view View