Enum ShaderMaterial.Hook
- All Implemented Interfaces:
Comparable<ShaderMaterial.Hook>
- Enclosing class:
ShaderMaterial
An input of the engine's shader that a graph can replace.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheVEC4surface colour and alpha, in place of the material colour times its texture.AFLOAT; the pixel is dropped where it is above 0.5.AVEC3colour added after lighting, before fog and tone mapping.TheFLOATmetallic factor of a PBR material.TheVEC3world space surface normal used for lighting; it is normalized for you.TheFLOATroughness of a PBR material.AVEC3added to the model space vertex position. -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the type a graph for this hook must have.booleanReturns true for the fragment stage, false for the vertex stage.static ShaderMaterial.HookReturns the enum constant of this type with the specified name.static ShaderMaterial.Hook[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
VERTEX_OFFSET
AVEC3added to the model space vertex position. Vertex stage. -
BASE_COLOR
TheVEC4surface colour and alpha, in place of the material colour times its texture. -
NORMAL
TheVEC3world space surface normal used for lighting; it is normalized for you. -
METALLIC
TheFLOATmetallic factor of a PBR material. -
ROUGHNESS
TheFLOATroughness of a PBR material. -
EMISSIVE
AVEC3colour added after lighting, before fog and tone mapping. -
DISCARD
AFLOAT; the pixel is dropped where it is above 0.5. For cut outs such as leaves, or a dissolve.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
Returns the type a graph for this hook must have.
Returns
the type
-
isFragment
public boolean isFragment()Returns true for the fragment stage, false for the vertex stage.
Returns
the stage
-