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
ConstructorsConstructorDescriptioncreates 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()booleanvoidread(JmeImporter im) jme serialization (not used)voidsetDocumentation(String documentation) sets the documentationvoidsetInputs(List<ShaderNodeVariable> inputs) sets the input variables of this definitionvoidsets the name of the definitionvoidsetNoOutput(boolean noOutput) voidsetOutputs(List<ShaderNodeVariable> outputs) sets the output variables of this definitionvoidsets the path of this definitionvoidsetType(Shader.ShaderType type) sets the type of shader this definition applies totoString()convenience toStringvoidwrite(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:
writein 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:
readin interfaceSavable- Parameters:
im- the importer- Throws:
IOException- from the importer
-
toString
convenience toString
-