Enum Class Shader.ShaderType

java.lang.Object
java.lang.Enum<Shader.ShaderType>
com.jme3.shader.Shader.ShaderType
All Implemented Interfaces:
Serializable, Comparable<Shader.ShaderType>, Constable
Enclosing class:
Shader

public static enum Shader.ShaderType extends Enum<Shader.ShaderType>
Type of shader. The shader will control the pipeline of its type.
  • Enum Constant Details Link icon

    • Fragment Link icon

      public static final Shader.ShaderType Fragment
      Control fragment rasterization. (e.g. color of pixel).
    • Vertex Link icon

      public static final Shader.ShaderType Vertex
      Control vertex processing. (e.g. transform of model to clip space)
    • Geometry Link icon

      public static final Shader.ShaderType Geometry
      Control geometry assembly. (e.g. compile a triangle list from input data)
    • TessellationControl Link icon

      public static final Shader.ShaderType TessellationControl
      Controls tessellation factor (e.g. how often an input patch should be subdivided)
    • TessellationEvaluation Link icon

      public static final Shader.ShaderType TessellationEvaluation
      Controls tessellation transform (e.g. similar to the vertex shader, but required to mix inputs manual)
  • Method Details Link icon

    • values Link icon

      public static Shader.ShaderType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      public static Shader.ShaderType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getExtension Link icon

      public String getExtension()