VertexAttribute


@ExperimentalCustomMeshApi
public final class VertexAttribute


Defines the attribute of a vertex.

This class is used to define the semantic meaning of a vertex attribute in a VertexAttributeDescriptor. See VertexAttributeType for the supported data types.

Summary

Public fields

static final @NonNull VertexAttribute

The indices of the bones that affect this vertex.

static final @NonNull VertexAttribute

The weights of the bones that affect this vertex.

static final @NonNull VertexAttribute

The color of the vertex.

static final @NonNull VertexAttribute

The normal of the vertex.

static final @NonNull VertexAttribute

The position of the vertex.

static final @NonNull VertexAttribute

The first set of texture coordinates.

static final @NonNull VertexAttribute

The second set of texture coordinates.

Public methods

boolean
equals(Object other)
int
@NonNull String

Public fields

BONE_INDICES

public static final @NonNull VertexAttribute BONE_INDICES

The indices of the bones that affect this vertex. Must be a VertexAttributeType.UBYTE4.

BONE_WEIGHTS

public static final @NonNull VertexAttribute BONE_WEIGHTS

The weights of the bones that affect this vertex. Must be a VertexAttributeType.UBYTE4_NORM.

COLOR

public static final @NonNull VertexAttribute COLOR

The color of the vertex. Must be a VertexAttributeType.UBYTE4_NORM.

NORMAL

public static final @NonNull VertexAttribute NORMAL

The normal of the vertex. Must be a VertexAttributeType.FLOAT3 normal, or a VertexAttributeType.FLOAT4 quaternion representing the entire tangent frame (normal, tangent, and bitangent vectors).

POSITION

public static final @NonNull VertexAttribute POSITION

The position of the vertex. Must be a VertexAttributeType.FLOAT3.

UV0

public static final @NonNull VertexAttribute UV0

The first set of texture coordinates. Must be a VertexAttributeType.FLOAT2.

UV1

public static final @NonNull VertexAttribute UV1

The second set of texture coordinates. Must be a VertexAttributeType.FLOAT2.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()