Constructor and Description |
---|
ShaderNodeDefinition()
creates a ShaderNodeDefinition
|
ShaderNodeDefinition(java.lang.String name,
Shader.ShaderType type,
java.lang.String shaderPath,
java.lang.String shaderLanguage)
creates a ShaderNodeDefinition
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDocumentation() |
java.util.List<ShaderNodeVariable> |
getInputs() |
java.lang.String |
getName()
returns the name of the definition
|
java.util.List<ShaderNodeVariable> |
getOutputs() |
java.lang.String |
getPath()
return the path of this definition
|
java.util.List<java.lang.String> |
getShadersLanguage() |
java.util.List<java.lang.String> |
getShadersPath() |
Shader.ShaderType |
getType() |
boolean |
isNoOutput() |
void |
read(JmeImporter im)
jme serialization (not used)
|
void |
setDocumentation(java.lang.String documentation)
sets the documentation
|
void |
setInputs(java.util.List<ShaderNodeVariable> inputs)
sets the input variables of this definition
|
void |
setName(java.lang.String name)
sets the name of the definition
|
void |
setNoOutput(boolean noOutput) |
void |
setOutputs(java.util.List<ShaderNodeVariable> outputs)
sets the output variables of this definition
|
void |
setPath(java.lang.String path)
sets the path of this definition
|
void |
setType(Shader.ShaderType type)
sets the type of shader this definition applies to
|
java.lang.String |
toString()
convenience toString
|
void |
write(JmeExporter ex)
jme serialization (not used)
|
public ShaderNodeDefinition(java.lang.String name, Shader.ShaderType type, java.lang.String shaderPath, java.lang.String shaderLanguage)
name
- the name of the definitiontype
- the type of the shadershaderPath
- the path of the shadershaderLanguage
- the shader language (minimum required for this
definition)public ShaderNodeDefinition()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the namepublic Shader.ShaderType getType()
public void setType(Shader.ShaderType type)
type
- the typepublic java.lang.String getDocumentation()
public void setDocumentation(java.lang.String documentation)
documentation
- the documentationpublic java.util.List<ShaderNodeVariable> getInputs()
public void setInputs(java.util.List<ShaderNodeVariable> inputs)
inputs
- the inputspublic java.util.List<ShaderNodeVariable> getOutputs()
public void setOutputs(java.util.List<ShaderNodeVariable> outputs)
outputs
- the outputpublic java.lang.String getPath()
public void setPath(java.lang.String path)
path
- the desired pathpublic void write(JmeExporter ex) throws java.io.IOException
public java.util.List<java.lang.String> getShadersLanguage()
public java.util.List<java.lang.String> getShadersPath()
public boolean isNoOutput()
public void setNoOutput(boolean noOutput)
public void read(JmeImporter im) throws java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object