VertexAttribute
Options for the attributes a vertex can store in a mesh.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public enum VertexAttribute
Remarks
Vertices in a mesh can store a variety of attributes, such as position, normal, tangent, texture coordinates, or colors. Most attributes are optional, and different meshes may have different sets of attributes. Use this enum together with the Mesh API to modify and reason about the attributes in a given mesh.
Fields
Value | Description |
|---|---|
| BlendIndices | The indices that map a vertex to specific bones in skinning calculations. |
| BlendWeight | The values that describe how much influence bones have on a vertex in skinning calculations. |
| Color | The color of the vertex, using the Color or Color32 format. |
| Normal | The direction perpendicular to the surface at the vertex position. |
| Position | The location of the vertex in space. |
| Tangent | The direction tangential to the surface at the vertex position. |
| TexCoord0 | The primary UV coordinates of the vertex. |
| TexCoord1 | The second set of UV coordinates of the vertex. |
| TexCoord2 | The third set of UV coordinates of the vertex. |
| TexCoord3 | The fourth set of UV coordinates of the vertex. |
| TexCoord4 | The fifth set of UV coordinates of the vertex. |
| TexCoord5 | The sixth set of UV coordinates of the vertex. |
| TexCoord6 | The seventh set of UV coordinates of the vertex. |
| TexCoord7 | The eighth set of UV coordinates of the vertex. |