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

    • Fragment

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

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

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

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

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

    • values

      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

      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

      public String getExtension()