Skip to main content

Module location

Module location 

Source
Expand description

Vertex attribute locations declared by the built-in shader.

Constantsยง

BASE_COLOR
Per-instance base color.
COLOR
Vertex color (Unorm8x4).
CUTOFF
Per-instance alpha cutoff (Float32), read from the instance stream.
HULL_WIDTH
Per-instance inverted-hull width (Float32), read from the instance stream.
JOINTS
Joint indices (Uint16x4), read from the position stream.
JOINTS_BASE
Per-instance joint-matrix base (Uint32), read from the instance stream.
JOINTS_WEIGHTS
Joint weights (Unorm16x4), read from the position stream right after the indices.
METADATA_INDEX
Per-instance index of the mesh metadata entry (Uint32), read from the instance stream.
MODEL_0
First column of the per-instance model matrix.
MODEL_1
Second column of the per-instance model matrix.
MODEL_2
Third column of the per-instance model matrix.
MORPH_BASE
Per-instance morph-weight base (Uint32), read from the instance stream.
NORMAL
Vertex normal (Snorm16x2), read from the secondary stream.
POSITION
Compressed position (Snorm16x4).
UV
Compressed UV (Snorm16x2).