public static enum RenderQueue.Bucket extends java.lang.Enum<RenderQueue.Bucket>
Bucket
specifies the bucket
to which the spatial will be placed when rendered.
The behavior of the rendering will differ depending on which
bucket the spatial is placed. A spatial's queue bucket can be set
via Spatial.setQueueBucket(com.jme3.renderer.queue.RenderQueue.Bucket)
.
Enum Constant and Description |
---|
Gui
This is a special mode, for drawing 2D object
without perspective (such as GUI or HUD parts).
|
Inherit
A special mode, that will ensure that this spatial uses the same
mode as the parent Node does.
|
Opaque
The renderer will try to find the optimal order for rendering all
objects using this mode.
|
Sky
A special mode used for rendering really far away, flat objects -
e.g.
|
Translucent
A special mode used for rendering transparent objects that
should not be affected by
SceneProcessor . |
Transparent
This is the mode you should use for object with
transparency in them.
|
Modifier and Type | Method and Description |
---|---|
static RenderQueue.Bucket |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RenderQueue.Bucket[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderQueue.Bucket Opaque
public static final RenderQueue.Bucket Transparent
public static final RenderQueue.Bucket Sky
public static final RenderQueue.Bucket Translucent
SceneProcessor
.
Generally this would contain translucent objects, and
also objects that do not write to the depth buffer such as
particle emitters.public static final RenderQueue.Bucket Gui
public static final RenderQueue.Bucket Inherit
public static RenderQueue.Bucket[] values()
for (RenderQueue.Bucket c : RenderQueue.Bucket.values()) System.out.println(c);
public static RenderQueue.Bucket valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null