| |
|
| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.NodeComponent javax.media.j3d.Appearance javax.media.j3d.ShaderAppearance
ShaderAppearance | public class ShaderAppearance extends Appearance (Code) | | The ShaderAppearance object defines programmable shading attributes
that can be set as a component object of a Shape3D node. The
ShaderAppearance rendering state adds the following attributes in
addition to those defined by Appearance:
- Shader program - specifies the shader program...
- Shader attribute set - specifies the shader parameters, both as
explicit attributes and as implicit bindings to Java 3D
state...
The ShaderAppearance object modifies the definition of some of the
attributes in Appearance:
- Coloring attributes - XXXXX
- Line attributes - XXXXX
- Point attributes - XXXXX
- Polygon attributes - XXXXX
- Rendering attributes - XXXXX
- Transparency attributes - XXXXX
- Material - XXXXX
- Texture - XXXXX
- Texture attributes - XXXXX
- Texture coordinate generation - XXXXX
- Texture unit state - XXXXX
See Also: ShaderProgram See Also: ShaderAttributeSet since: Java 3D 1.4 |
Field Summary | |
final public static int | ALLOW_SHADER_ATTRIBUTE_SET_READ Specifies that this ShaderAppearance object allows reading its
ShaderAttributeSet component information. | final public static int | ALLOW_SHADER_ATTRIBUTE_SET_WRITE Specifies that this ShaderAppearance object allows writing its
ShaderAttributeSet component information. | final public static int | ALLOW_SHADER_PROGRAM_READ Specifies that this ShaderAppearance object allows reading its
ShaderProgram component information. | final public static int | ALLOW_SHADER_PROGRAM_WRITE Specifies that this ShaderAppearance object allows writing its
ShaderProgram component information. |
Constructor Summary | |
public | ShaderAppearance() Constructs a ShaderAppearance component object using defaults for all
state variables. |
ALLOW_SHADER_ATTRIBUTE_SET_READ | final public static int ALLOW_SHADER_ATTRIBUTE_SET_READ(Code) | | Specifies that this ShaderAppearance object allows reading its
ShaderAttributeSet component information.
|
ALLOW_SHADER_ATTRIBUTE_SET_WRITE | final public static int ALLOW_SHADER_ATTRIBUTE_SET_WRITE(Code) | | Specifies that this ShaderAppearance object allows writing its
ShaderAttributeSet component information.
|
ALLOW_SHADER_PROGRAM_READ | final public static int ALLOW_SHADER_PROGRAM_READ(Code) | | Specifies that this ShaderAppearance object allows reading its
ShaderProgram component information.
|
ALLOW_SHADER_PROGRAM_WRITE | final public static int ALLOW_SHADER_PROGRAM_WRITE(Code) | | Specifies that this ShaderAppearance object allows writing its
ShaderProgram component information.
|
ShaderAppearance | public ShaderAppearance()(Code) | | Constructs a ShaderAppearance component object using defaults for all
state variables. All component object references are initialized
to null.
|
createRetained | void createRetained()(Code) | | Creates the retained mode ShaderAppearanceRetained object that this
ShaderAppearance component object will point to.
|
duplicateAttributes | void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code) | | Copies all ShaderAppearance information from
originalNodeComponent into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
Parameters: originalNodeComponent - the original node to duplicate. Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. exception: RestrictedAccessException - if this object is part of a liveor compiled scenegraph. See Also: Node.cloneTree See Also: NodeComponent.setDuplicateOnCloneTree |
duplicateChild | boolean duplicateChild()(Code) | | This function is called from getNodeComponent() to see if any of
the sub-NodeComponents duplicateOnCloneTree flag is true.
If it is the case, current NodeComponent needs to
duplicate also even though current duplicateOnCloneTree flag is false.
This should be overwrite by NodeComponent which contains sub-NodeComponent.
|
duplicateNodeComponent | public void duplicateNodeComponent(NodeComponent originalNodeComponent)(Code) | | NOTE: Applications should not call this method directly.
It should only be called by the cloneNode method.
|
getShaderAttributeSet | public ShaderAttributeSet getShaderAttributeSet()(Code) | | Retrieves the current ShaderAttributeSet object.
the ShaderAttributeSet object exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
getShaderProgram | public ShaderProgram getShaderProgram()(Code) | | Retrieves the current ShaderProgram object.
the ShaderProgram object exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setShaderAttributeSet | public void setShaderAttributeSet(ShaderAttributeSet shaderAttributeSet)(Code) | | Sets the ShaderAttributeSet object to the specified object. Setting it to
null is equivalent to specifying an empty set of attributes.
Parameters: shaderAttributeSet - object that specifies the desired shader attributes exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setShaderProgram | public void setShaderProgram(ShaderProgram shaderProgram)(Code) | | Sets the ShaderProgram object to the specified object. Setting it to
null causes a default pass-through shader to be used ???
Parameters: shaderProgram - object that specifies the desired shader program exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
Fields inherited from javax.media.j3d.NodeComponent | boolean forceDuplicate(Code)(Java Doc)
|
|
|
|