public class SourceCodeShader extends Shader
ShaderProgram
SHADER_TYPE_FRAGMENT, SHADER_TYPE_VERTEX, SHADING_LANGUAGE_CG, SHADING_LANGUAGE_GLSL
Constructor | Description |
---|---|
SourceCodeShader(int shadingLanguage,
int shaderType,
java.lang.String shaderSource) |
Constructs a new shader object of the specified shading
language and shader type from the specified source string.
|
Modifier and Type | Method | Description |
---|---|---|
NodeComponent |
cloneNodeComponent() |
Deprecated.
replaced with cloneNodeComponent(boolean forceDuplicate)
|
java.lang.String |
getShaderSource() |
Retrieves the shader source string from this shader object.
|
cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
getShaderType, getShadingLanguage
public SourceCodeShader(int shadingLanguage, int shaderType, java.lang.String shaderSource)
shadingLanguage
- the specified shading language, one of:
SHADING_LANGUAGE_GLSL
or
SHADING_LANGUAGE_CG
.shaderType
- the shader type, one of:
SHADER_TYPE_VERTEX
or
SHADER_TYPE_FRAGMENT
.shaderSource
- the shader source codejava.lang.NullPointerException
- if shaderSource is null.public java.lang.String getShaderSource()
public NodeComponent cloneNodeComponent()
cloneNodeComponent
in class NodeComponent
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.