Package | alternativa.engine3d.core |
Class | public class VertexAttributes |
Inheritance | VertexAttributes ![]() |
geometry.addVertexStream(attributes)
as an argument.
See also
Method | Defined By | ||
---|---|---|---|
getAttributeStride(attribute:int):int [static]
Returns a dimensions of given attribute type (Number of floats by which defines given type)
| VertexAttributes |
Constant | Defined By | ||
---|---|---|---|
JOINTS : Vector.<uint> [static]
Data of linking of two Joints with vertex. | VertexAttributes | ||
NORMAL : uint = 2 [static]
Vertex normal. | VertexAttributes | ||
POSITION : uint = 1 [static]
Coordinates in 3D space. | VertexAttributes | ||
TANGENT4 : uint = 3 [static]
This data type combines values of vertex tangent and binormal within one sequence of four floats. | VertexAttributes | ||
TEXCOORDS : Vector.<uint> [static]
Texture coordinates data type. | VertexAttributes |
getAttributeStride | () | method |
public static function getAttributeStride(attribute:int):int
Returns a dimensions of given attribute type (Number of floats by which defines given type)
Parameters
attribute:int — Type of the attribute.
|
int —
|
JOINTS | Constant |
public static const JOINTS:Vector.<uint>
Data of linking of two Joint
s with vertex. Defines by sequence of four floats in following order:
id of the first Joint
multiplied with 3, power of influence of the first Joint
,
id of the second Joint
multiplied with 3, power of influence of the second Joint
.
There are a four 'slots' for this data type, so influence of 8 Joint
s can be described.
See also
NORMAL | Constant |
public static const NORMAL:uint = 2
Vertex normal. Defines by sequence of three floats.
See also
POSITION | Constant |
public static const POSITION:uint = 1
Coordinates in 3D space. Defines by sequence of three floats.
See also
TANGENT4 | Constant |
public static const TANGENT4:uint = 3
This data type combines values of vertex tangent and binormal within one sequence of four floats. The first three values defines tangent direction and the fourth can be 1 or -1 which defines to what side binormal is ordered.
See also
TEXCOORDS | Constant |
public static const TEXCOORDS:Vector.<uint>
Texture coordinates data type. There are a 8 independent channels. Coordinates defines by the couples (u, v).
See also