Package com.jme3.shader
Class ShaderNodeDefinition
java.lang.Object
com.jme3.shader.ShaderNodeDefinition
- All Implemented Interfaces:
Savable
Shader node definition structure meant for holding loaded data from a
material definition j3md file
-
Constructor Summary
ConstructorDescriptioncreates a ShaderNodeDefinitionShaderNodeDefinition
(String name, Shader.ShaderType type, String shaderPath, String shaderLanguage) creates a ShaderNodeDefinition -
Method Summary
Modifier and TypeMethodDescriptiongetName()
returns the name of the definitiongetPath()
return the path of this definitiongetType()
boolean
void
read
(JmeImporter im) jme serialization (not used)void
setDocumentation
(String documentation) sets the documentationvoid
setInputs
(List<ShaderNodeVariable> inputs) sets the input variables of this definitionvoid
sets the name of the definitionvoid
setNoOutput
(boolean noOutput) void
setOutputs
(List<ShaderNodeVariable> outputs) sets the output variables of this definitionvoid
sets the path of this definitionvoid
setType
(Shader.ShaderType type) sets the type of shader this definition applies totoString()
convenience toStringvoid
write
(JmeExporter ex) jme serialization (not used)
-
Constructor Details
-
ShaderNodeDefinition
public ShaderNodeDefinition(String name, Shader.ShaderType type, String shaderPath, String shaderLanguage) creates a ShaderNodeDefinition- Parameters:
name
- the name of the definitiontype
- the type of the shadershaderPath
- the path of the shadershaderLanguage
- the shader language (minimum required for this definition)
-
ShaderNodeDefinition
public ShaderNodeDefinition()creates a ShaderNodeDefinition
-
-
Method Details
-
getName
returns the name of the definition- Returns:
- the name
-
setName
sets the name of the definition- Parameters:
name
- the name
-
getType
- Returns:
- the type of shader the definition applies to
-
setType
sets the type of shader this definition applies to- Parameters:
type
- the type
-
getDocumentation
- Returns:
- the documentation for this definition
-
setDocumentation
sets the documentation- Parameters:
documentation
- the documentation
-
getInputs
- Returns:
- the input variables of this definition
-
setInputs
sets the input variables of this definition- Parameters:
inputs
- the inputs
-
getOutputs
- Returns:
- the output variables of this definition
-
setOutputs
sets the output variables of this definition- Parameters:
outputs
- the output
-
getPath
return the path of this definition- Returns:
- the path
-
setPath
sets the path of this definition- Parameters:
path
- the desired path
-
write
jme serialization (not used)- Specified by:
write
in interfaceSavable
- Parameters:
ex
- the exporter- Throws:
IOException
- from the exporter
-
getShadersLanguage
-
getShadersPath
-
isNoOutput
public boolean isNoOutput() -
setNoOutput
public void setNoOutput(boolean noOutput) -
read
jme serialization (not used)- Specified by:
read
in interfaceSavable
- Parameters:
im
- the importer- Throws:
IOException
- from the importer
-
toString
convenience toString
-