public enum VertexAttribute.Usage

  1. Object
  2. Enum<VertexAttribute.Usage>
  3. VertexAttribute.Usage

ImplementsComparable<VertexAttribute.Usage>

The semantic meaning of a vertex attribute. The engine binds each usage to a known shader input and a known purpose in the generated materials.

Enum constants

POSITIONObject space vertex position.
NORMALObject space vertex normal.
TEXCOORDPrimary texture coordinate.
COLORPer vertex color.

Methods

public static VertexAttribute.Usage[] values()
public static VertexAttribute.Usage valueOf(String name)

Inherited methods

Enum constant details

POSITION

POSITION
Object space vertex position. Typically 3 float components.

NORMAL

NORMAL
Object space vertex normal. Typically 3 float components.

TEXCOORD

TEXCOORD
Primary texture coordinate. Typically 2 float components.

COLOR

COLOR
Per vertex color. Typically 4 components.

Method details

values

public static VertexAttribute.Usage[] values()

valueOf

public static VertexAttribute.Usage valueOf(String name)