| |
|
| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.NodeComponent javax.media.j3d.Shader javax.media.j3d.SourceCodeShader
SourceCodeShader | public class SourceCodeShader extends Shader (Code) | | The SourceCodeShader object is a shader that is defined using
text-based source code. It is used to define the source code for
both vertex and fragment shaders. The currently supported shading
languages are Cg and GLSL.
See Also: ShaderProgram since: Java 3D 1.4 |
Constructor Summary | |
| SourceCodeShader() | public | SourceCodeShader(int shadingLanguage, int shaderType, String shaderSource) Constructs a new shader object of the specified shading
language and shader type from the specified source string. |
SourceCodeShader | SourceCodeShader()(Code) | | Not a public constructor, for internal use
|
SourceCodeShader | public SourceCodeShader(int shadingLanguage, int shaderType, String shaderSource)(Code) | | Constructs a new shader object of the specified shading
language and shader type from the specified source string.
Parameters: shadingLanguage - the specified shading language, one of:SHADING_LANGUAGE_GLSL orSHADING_LANGUAGE_CG . Parameters: shaderType - the shader type, one of:SHADER_TYPE_VERTEX orSHADER_TYPE_FRAGMENT . Parameters: shaderSource - the shader source code exception: NullPointerException - if shaderSource is null. |
createRetained | void createRetained()(Code) | | Creates a retained mode SourceCodeShaderRetained object that this
SourceCodeShader component object will point to.
|
duplicateAttributes | void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate)(Code) | | Copies all node information from originalNodeComponent
into the current node. This method is called from the
duplicateNode method. This routine does
the actual duplication of all "local data" (any data defined in
this object).
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. See Also: Node.cloneTree See Also: NodeComponent.setDuplicateOnCloneTree |
getShaderSource | public String getShaderSource()(Code) | | Retrieves the shader source string from this shader object.
the shader source string. |
Fields inherited from javax.media.j3d.NodeComponent | boolean forceDuplicate(Code)(Java Doc)
|
|
|
|