Method Detail

setGeometryComparator

Sets a different geometry comparator for the specified bucket, one
of Gui, Opaque, Sky, Transparent, or Translucent. The GeometryComparators are
used to sort the accumulated list of geometries before actual rendering
occurs.

The most significant comparator is the one for the transparent
bucket since there is no correct way to sort the transparent bucket
that will handle all geometry all the time. In certain cases, the
application may know the best way to sort and now has the option of
configuring a specific implementation.

The default comparators are:

Bucket.Opaque: OpaqueComparator which sorts
by material first and front to back within the same material.

Bucket.Transparent: TransparentComparator which
sorts purely back to front by leading bounding edge with no material sort.

Bucket.Translucent: TransparentComparator which
sorts purely back to front by leading bounding edge with no material sort. this bucket is rendered after post processors.