Packagealternativa.engine3d.core
Classpublic class VertexAttributes
InheritanceVertexAttributes Inheritance Object

Types of attributes which defines format of vertex streams. It can be used as values of array, passed to geometry.addVertexStream(attributes) as an argument.

See also

alternativa.engine3d.resources.Geometry


Public Methods
 MethodDefined By
  
getAttributeStride(attribute:int):int
[static] Returns a dimensions of given attribute type (Number of floats by which defines given type)
VertexAttributes
Public Constants
 ConstantDefined 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
Method Detail
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.

Returns
int
Constant Detail
JOINTSConstant
public static const JOINTS:Vector.<uint>

Data of linking of two Joints 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 Joints can be described.

See also

NORMALConstant 
public static const NORMAL:uint = 2

Vertex normal. Defines by sequence of three floats.

See also

POSITIONConstant 
public static const POSITION:uint = 1

Coordinates in 3D space. Defines by sequence of three floats.

See also

TANGENT4Constant 
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

TEXCOORDSConstant 
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