|
@@ -7,6 +7,9 @@ const attributeLocations: { [kind: string]: number } = {
|
|
[VertexBuffer.NormalKind]: 1,
|
|
[VertexBuffer.NormalKind]: 1,
|
|
[VertexBuffer.TangentKind]: 2,
|
|
[VertexBuffer.TangentKind]: 2,
|
|
[VertexBuffer.UVKind]: 10,
|
|
[VertexBuffer.UVKind]: 10,
|
|
|
|
+ [VertexBuffer.UV2Kind]: 11,
|
|
|
|
+ [VertexBuffer.UV3Kind]: 12,
|
|
|
|
+ [VertexBuffer.UV4Kind]: 13,
|
|
[VertexBuffer.ColorKind]: 4,
|
|
[VertexBuffer.ColorKind]: 4,
|
|
[VertexBuffer.MatricesIndicesKind]: 8,
|
|
[VertexBuffer.MatricesIndicesKind]: 8,
|
|
[VertexBuffer.MatricesWeightsKind]: 9,
|
|
[VertexBuffer.MatricesWeightsKind]: 9,
|
|
@@ -16,9 +19,12 @@ const attributeBGFXName: { [kind: string]: string } = {
|
|
[VertexBuffer.PositionKind]: "a_position",
|
|
[VertexBuffer.PositionKind]: "a_position",
|
|
[VertexBuffer.NormalKind]: "a_normal",
|
|
[VertexBuffer.NormalKind]: "a_normal",
|
|
[VertexBuffer.TangentKind]: "a_tangent",
|
|
[VertexBuffer.TangentKind]: "a_tangent",
|
|
- [VertexBuffer.UVKind]: "a_uv",
|
|
|
|
- [VertexBuffer.ColorKind]: "a_color",
|
|
|
|
- [VertexBuffer.MatricesIndicesKind]: "a_index",
|
|
|
|
|
|
+ [VertexBuffer.UVKind]: "a_texcoord0",
|
|
|
|
+ [VertexBuffer.UV2Kind]: "a_texcoord1",
|
|
|
|
+ [VertexBuffer.UV3Kind]: "a_texcoord2",
|
|
|
|
+ [VertexBuffer.UV4Kind]: "a_texcoord3",
|
|
|
|
+ [VertexBuffer.ColorKind]: "a_color0",
|
|
|
|
+ [VertexBuffer.MatricesIndicesKind]: "a_indices",
|
|
[VertexBuffer.MatricesWeightsKind]: "a_weight",
|
|
[VertexBuffer.MatricesWeightsKind]: "a_weight",
|
|
};
|
|
};
|
|
|
|
|