Class ShaderNodeDefinition

java.lang.Object
com.jme3.shader.ShaderNodeDefinition
All Implemented Interfaces:
Savable

public class ShaderNodeDefinition extends Object implements Savable
Shader node definition structure meant for holding loaded data from a material definition j3md file
  • Constructor Details

    • ShaderNodeDefinition

      public ShaderNodeDefinition(String name, Shader.ShaderType type, String shaderPath, String shaderLanguage)
      creates a ShaderNodeDefinition
      Parameters:
      name - the name of the definition
      type - the type of the shader
      shaderPath - the path of the shader
      shaderLanguage - the shader language (minimum required for this definition)
    • ShaderNodeDefinition

      public ShaderNodeDefinition()
      creates a ShaderNodeDefinition
  • Method Details

    • getName

      public String getName()
      returns the name of the definition
      Returns:
      the name
    • setName

      public void setName(String name)
      sets the name of the definition
      Parameters:
      name - the name
    • getType

      public Shader.ShaderType getType()
      Returns:
      the type of shader the definition applies to
    • setType

      public void setType(Shader.ShaderType type)
      sets the type of shader this definition applies to
      Parameters:
      type - the type
    • getDocumentation

      public String getDocumentation()
      Returns:
      the documentation for this definition
    • setDocumentation

      public void setDocumentation(String documentation)
      sets the documentation
      Parameters:
      documentation - the documentation
    • getInputs

      public List<ShaderNodeVariable> getInputs()
      Returns:
      the input variables of this definition
    • setInputs

      public void setInputs(List<ShaderNodeVariable> inputs)
      sets the input variables of this definition
      Parameters:
      inputs - the inputs
    • getOutputs

      public List<ShaderNodeVariable> getOutputs()
      Returns:
      the output variables of this definition
    • setOutputs

      public void setOutputs(List<ShaderNodeVariable> outputs)
      sets the output variables of this definition
      Parameters:
      outputs - the output
    • getPath

      public String getPath()
      return the path of this definition
      Returns:
      the path
    • setPath

      public void setPath(String path)
      sets the path of this definition
      Parameters:
      path - the desired path
    • write

      public void write(JmeExporter ex) throws IOException
      jme serialization (not used)
      Specified by:
      write in interface Savable
      Parameters:
      ex - the exporter
      Throws:
      IOException - from the exporter
    • getShadersLanguage

      public List<String> getShadersLanguage()
    • getShadersPath

      public List<String> getShadersPath()
    • isNoOutput

      public boolean isNoOutput()
    • setNoOutput

      public void setNoOutput(boolean noOutput)
    • read

      public void read(JmeImporter im) throws IOException
      jme serialization (not used)
      Specified by:
      read in interface Savable
      Parameters:
      im - the importer
      Throws:
      IOException - from the importer
    • toString

      public String toString()
      convenience toString
      Overrides:
      toString in class Object
      Returns:
      a string