From 228a207aafb4b7737ae8bec0b509d26c64022acc Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Tue, 29 Mar 2011 04:31:53 +0000 Subject: [PATCH] Had this one hanging around from like a month ago... Added the ability to set the geometry comparators for the buckets for those cases where the app may know better. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7137 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/renderer/queue/RenderQueue.java | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/renderer/queue/RenderQueue.java b/engine/src/core/com/jme3/renderer/queue/RenderQueue.java index 577a52b5b..9e1049b1d 100644 --- a/engine/src/core/com/jme3/renderer/queue/RenderQueue.java +++ b/engine/src/core/com/jme3/renderer/queue/RenderQueue.java @@ -71,6 +71,48 @@ public class RenderQueue { Inherit } + /** + * Sets a different geometry comparator for the specified bucket, one + * of Gui, Opaque, Sky, or Transparent. 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:

+ *