Constructor
new VertexElement(usage, stream, type, countnullable, normalizenullable)
Constructor
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
usage |
VertexElement.Usage | Element usage | ||
stream |
number | Stream index | ||
type |
VertexElement.Type | Type of element | ||
count |
number |
<nullable> |
0 | Value count, ex: A "vec2" will have "2" for this parameter |
normalize |
boolean |
<nullable> |
false | True to ask rendering API to normalize values |
Members
number
static StreamType
Type of stream available
Properties:
Name | Type | Description |
---|---|---|
Static |
number | |
Dynamic |
number | |
Stream |
number |
number
static Type
VertexElement's types
Properties:
Name | Type | Description |
---|---|---|
Byte |
number | |
Float |
number | |
Int |
number | |
Short |
number |
number
static Usage
VertexElement's usage
Properties:
Name | Type | Description |
---|---|---|
Position |
number | |
Color |
number | |
UVS |
number | |
Normal |
number | |
Tangent |
number |
boolean
normalize
Indicates if the value need to be normalized by the graphic API