VertexAttribute


@ExperimentalCustomMeshApi
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 companion properties

VertexAttribute

The indices of the bones that affect this vertex.

VertexAttribute

The weights of the bones that affect this vertex.

VertexAttribute

The color of the vertex.

VertexAttribute

The normal of the vertex.

VertexAttribute

The position of the vertex.

VertexAttribute

The first set of texture coordinates.

VertexAttribute

The second set of texture coordinates.

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public companion properties

BONE_INDICES

val BONE_INDICESVertexAttribute

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

BONE_WEIGHTS

val BONE_WEIGHTSVertexAttribute

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

COLOR

val COLORVertexAttribute

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

NORMAL

val NORMALVertexAttribute

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

val POSITIONVertexAttribute

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

UV0

val UV0VertexAttribute

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

UV1

val UV1VertexAttribute

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String