public class SourceCodeShader extends Shader
ShaderProgramSHADER_TYPE_FRAGMENT, SHADER_TYPE_VERTEX, SHADING_LANGUAGE_CG, SHADING_LANGUAGE_GLSL| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
NodeComponent |
cloneNodeComponent()
Deprecated.
replaced with cloneNodeComponent(boolean forceDuplicate)
|
String |
getShaderSource()
Retrieves the shader source string from this shader object.
|
getShaderType, getShadingLanguagecloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTreeclearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferencespublic SourceCodeShader(int shadingLanguage,
int shaderType,
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 codeNullPointerException - if shaderSource is null.public String getShaderSource()
public NodeComponent cloneNodeComponent()
cloneNodeComponent in class NodeComponentCopyright © 2016–2022 SciJava. All rights reserved.